You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by mengxr <gi...@git.apache.org> on 2014/12/18 23:41:50 UTC

[GitHub] spark pull request: [SPARK-4749] [mllib]: Allow initializing KMean...

Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3610#discussion_r22077324
  
    --- Diff: mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala ---
    @@ -353,6 +360,31 @@ 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
    +   */
    +  def train(
    --- End diff --
    
    Could you move this to the beginning and make the one without seed call this?


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org