You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by me...@apache.org on 2015/09/10 07:09:38 UTC

spark git commit: [MINOR] [MLLIB] [ML] [DOC] fixed typo: label for negative result should be 0.0 (original: 1.0)

Repository: spark
Updated Branches:
  refs/heads/master 56a0fe5c6 -> 1dc7548c5


[MINOR] [MLLIB] [ML] [DOC] fixed typo: label for negative result should be 0.0 (original: 1.0)

Small typo in the example for `LabelledPoint` in the MLLib docs.

Author: Sean Paradiso <se...@gmail.com>

Closes #8680 from sparadiso/docs_mllib_smalltypo.


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

Branch: refs/heads/master
Commit: 1dc7548c598c4eb4ecc7d5bb8962a735bbd2c0f7
Parents: 56a0fe5
Author: Sean Paradiso <se...@gmail.com>
Authored: Wed Sep 9 22:09:33 2015 -0700
Committer: Xiangrui Meng <me...@databricks.com>
Committed: Wed Sep 9 22:09:33 2015 -0700

----------------------------------------------------------------------
 docs/mllib-data-types.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/1dc7548c/docs/mllib-data-types.md
----------------------------------------------------------------------
diff --git a/docs/mllib-data-types.md b/docs/mllib-data-types.md
index 065bf47..d8c7bdc 100644
--- a/docs/mllib-data-types.md
+++ b/docs/mllib-data-types.md
@@ -144,7 +144,7 @@ import org.apache.spark.mllib.regression.LabeledPoint;
 LabeledPoint pos = new LabeledPoint(1.0, Vectors.dense(1.0, 0.0, 3.0));
 
 // Create a labeled point with a negative label and a sparse feature vector.
-LabeledPoint neg = new LabeledPoint(1.0, Vectors.sparse(3, new int[] {0, 2}, new double[] {1.0, 3.0}));
+LabeledPoint neg = new LabeledPoint(0.0, Vectors.sparse(3, new int[] {0, 2}, new double[] {1.0, 3.0}));
 {% endhighlight %}
 </div>
 


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