Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/10610#discussion_r51214253
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala ---
@@ -482,12 +482,15 @@ object KMeans {
/**
* Trains a k-means model using the given set of parameters.
*
- * @param data training points stored as `RDD[Vector]`
- * @param k number of clusters
- * @param maxIterations max number of iterations
- * @param runs number of parallel runs, defaults to 1. The best model is
returned.
- * @param initializationMode initialization model, either "random" or
"k-means||" (default).
- * @param seed random seed value for cluster initialization
+ * @param data Train with a `RDD[Vector]` of data points.
--- End diff --
* `a RDD` -> `an RDD`. Please also check other occurrence in this PR.
* `data` should be described as a noun. So the previous version looks
better to me.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]