Github user sethah commented on a diff in the pull request:
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala ---
    @@ -499,13 +414,38 @@ object KMeans {
        * @param data Training points as an `RDD` of `Vector` types.
        * @param k Number of clusters to create.
        * @param maxIterations Maximum number of iterations allowed.
    +   * @param initializationMode The initialization algorithm. This can 
either be "random" or
    +   *                           "k-means||". (default: "k-means||")
    +   * @param seed Random seed for cluster initialization. Default is to 
generate seed based
    +   *             on system time.
    +   */
    +  @Since("2.1.0")
    +  def train(data: RDD[Vector],
    --- End diff --
    minor: style should match other train signatures

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to