Skip to content

Commit

Permalink
[MINOR] [MLLIB] [ML] [DOC] fixed typo: label for negative result shou…
Browse files Browse the repository at this point in the history
…ld be 0.0 (original: 1.0)

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

Author: Sean Paradiso <[email protected]>

Closes #8680 from sparadiso/docs_mllib_smalltypo.
  • Loading branch information
sparadiso authored and mengxr committed Sep 10, 2015
1 parent 56a0fe5 commit 1dc7548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/mllib-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 1dc7548

Please sign in to comment.