From 8177486b26b7a9f524976047dd3d4b818fa16f00 Mon Sep 17 00:00:00 2001 From: "Zhanhao (Jasper) Liu" Date: Mon, 13 Nov 2017 11:01:46 +0800 Subject: [PATCH 1/3] Fix typo --- docs/overview/spark_on_angel_en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/overview/spark_on_angel_en.md b/docs/overview/spark_on_angel_en.md index 99f5b25e3..f6e6b918d 100644 --- a/docs/overview/spark_on_angel_en.md +++ b/docs/overview/spark_on_angel_en.md @@ -32,7 +32,7 @@ Spark-On-Angel is lightweight due to Angel's interface design. The core modules * PSModelPool corresponds to a matrix on Angel PS, responsible for requesting, retrieving, and destructing PSVector * **PSVector/PSVetorProxy** - * PSVectorRemotePSVector and BreezePSVector are encapsulated with PSVector's operations under different scenarios + * RemotePSVector and BreezePSVector are encapsulated with PSVector's operations under different scenarios * `RemotePSVector` provides operations between PSVector and local value, including pull, push, increment * `BreezePSVector` provides operations between PSVector and PSVector, including most algebraic operations * PSVectorProxy is PSVector's proxy that points to a PSVector on Angel PS From 8b73314e507f59591fefdec7aaf475cf653e4a50 Mon Sep 17 00:00:00 2001 From: "Zhanhao (Jasper) Liu" Date: Mon, 13 Nov 2017 11:31:25 +0800 Subject: [PATCH 2/3] add intro. to PSMatrix --- docs/overview/spark_on_angel_en.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/overview/spark_on_angel_en.md b/docs/overview/spark_on_angel_en.md index f6e6b918d..2261cd052 100644 --- a/docs/overview/spark_on_angel_en.md +++ b/docs/overview/spark_on_angel_en.md @@ -36,7 +36,10 @@ Spark-On-Angel is lightweight due to Angel's interface design. The core modules * `RemotePSVector` provides operations between PSVector and local value, including pull, push, increment * `BreezePSVector` provides operations between PSVector and PSVector, including most algebraic operations * PSVectorProxy is PSVector's proxy that points to a PSVector on Angel PS - + +* **PSMatrix** + * Including DensePSMatrix and SparsePSMatrix + * Construction and destruction of PSMatrix: Use ```PSMatrix.dense(rows: Int, cols: Int)``` to construct a PSMatrix. When the Matrix is not needed, call ```destroy``` to destruct it manually ## 3. Execution Process From 04570d45d69c22afb655f2aaaf88e518da9d1e1b Mon Sep 17 00:00:00 2001 From: "Zhanhao (Jasper) Liu" Date: Mon, 13 Nov 2017 11:33:33 +0800 Subject: [PATCH 3/3] fix typo --- docs/overview/spark_on_angel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/overview/spark_on_angel.md b/docs/overview/spark_on_angel.md index 32feda426..fc3c82092 100644 --- a/docs/overview/spark_on_angel.md +++ b/docs/overview/spark_on_angel.md @@ -41,7 +41,7 @@ Angel从v1.0.0版本开始,就加入了**PS-Service**的特性,不仅仅可 * **PSMatrix** * 包括DensePSMatrix和SparsePSMatrix - * PSMatrix的创建和销毁:通过`PSMatrix.dense(rows: Int, cols: Int)`创建,当PSMatrix不再使用后,需要手动调用`destory`销毁该Matrix + * PSMatrix的创建和销毁:通过`PSMatrix.dense(rows: Int, cols: Int)`创建,当PSMatrix不再使用后,需要手动调用`destroy`销毁该Matrix 使用Spark on Angel的简单代码如下: