aboutsummaryrefslogtreecommitdiff
path: root/docs/mllib-data-types.md
diff options
context:
space:
mode:
authorSean Paradiso <seanparadiso@gmail.com>2015-09-09 22:09:33 -0700
committerXiangrui Meng <meng@databricks.com>2015-09-09 22:09:33 -0700
commit1dc7548c598c4eb4ecc7d5bb8962a735bbd2c0f7 (patch)
tree72dd6b4aee5154e82f75addc68a3524ba113bf81 /docs/mllib-data-types.md
parent56a0fe5c6e4ae2929c48fae2d6225558d020e5f9 (diff)
downloadspark-1dc7548c598c4eb4ecc7d5bb8962a735bbd2c0f7.tar.gz
spark-1dc7548c598c4eb4ecc7d5bb8962a735bbd2c0f7.tar.bz2
spark-1dc7548c598c4eb4ecc7d5bb8962a735bbd2c0f7.zip
[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 <seanparadiso@gmail.com> Closes #8680 from sparadiso/docs_mllib_smalltypo.
Diffstat (limited to 'docs/mllib-data-types.md')
-rw-r--r--docs/mllib-data-types.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/mllib-data-types.md b/docs/mllib-data-types.md
index 065bf47276..d8c7bdc63c 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>