GitHub user uzmijnlm opened a pull request:
https://github.com/apache/spark/pull/21665
[SPARK-24688][examples]Modify the comments about LabeledPoint
## What changes were proposed in this pull request?
An RDD is created using LabeledPoint, but the comment is like
#LabeledPoint(feature, label).
Although in the method ChiSquareTest.test, the second parameter is feature
and the third parameter is label, it it better to write label in front of
feature here because if an RDD is created using LabeldPoint, what we get are
actually (label, feature) pairs.
Now it is changed as LabeledPoint(label, feature).
The comments in Scala and Java example have the same typos.
## How was this patch tested?
tested
https://issues.apache.org/jira/browse/SPARK-24688
Author: Weizhe Huang [email protected]
Please review http://spark.apache.org/contributing.html before opening a
pull request.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/uzmijnlm/spark my_change
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21665.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21665
----
commit 79e414f2af16bc032e9dcb7eb1f4ab4da95c1fff
Author: Huangweizhe <huangweizhe@...>
Date: 2018-06-29T03:29:50Z
Modify the comments about LabeledPoint
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]