You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by yl...@apache.org on 2016/09/06 10:30:47 UTC

spark git commit: [MINOR][ML] Correct weights doc of MultilayerPerceptronClassificationModel.

Repository: spark
Updated Branches:
  refs/heads/master 6f13aa7df -> 39d538ddd


[MINOR][ML] Correct weights doc of MultilayerPerceptronClassificationModel.

## What changes were proposed in this pull request?
```weights``` of ```MultilayerPerceptronClassificationModel``` should be the output weights of layers rather than initial weights, this PR correct it.

## How was this patch tested?
Doc change.

Author: Yanbo Liang <yb...@gmail.com>

Closes #14967 from yanboliang/mlp-weights.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/39d538dd
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/39d538dd
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/39d538dd

Branch: refs/heads/master
Commit: 39d538dddf7d44bf4603c966d0f7b2c92f1e951a
Parents: 6f13aa7
Author: Yanbo Liang <yb...@gmail.com>
Authored: Tue Sep 6 03:30:37 2016 -0700
Committer: Yanbo Liang <yb...@gmail.com>
Committed: Tue Sep 6 03:30:37 2016 -0700

----------------------------------------------------------------------
 .../spark/ml/classification/MultilayerPerceptronClassifier.scala   | 2 +-
 python/pyspark/ml/classification.py                                | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/39d538dd/mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala b/mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala
index 7264a99..88fe7cb 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala
@@ -288,7 +288,7 @@ object MultilayerPerceptronClassifier
  *
  * @param uid uid
  * @param layers array of layer sizes including input and output layers
- * @param weights vector of initial weights for the model that consists of the weights of layers
+ * @param weights the weights of layers
  * @return prediction model
  */
 @Since("1.5.0")

http://git-wip-us.apache.org/repos/asf/spark/blob/39d538dd/python/pyspark/ml/classification.py
----------------------------------------------------------------------
diff --git a/python/pyspark/ml/classification.py b/python/pyspark/ml/classification.py
index d1522d7..b4c01fd 100644
--- a/python/pyspark/ml/classification.py
+++ b/python/pyspark/ml/classification.py
@@ -1276,7 +1276,7 @@ class MultilayerPerceptronClassificationModel(JavaModel, JavaPredictionModel, Ja
     @since("2.0.0")
     def weights(self):
         """
-        vector of initial weights for the model that consists of the weights of layers.
+        the weights of layers.
         """
         return self._call_java("weights")
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org