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

    https://github.com/apache/spark/pull/21561#discussion_r209860247
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala ---
    @@ -299,7 +299,7 @@ class KMeans private (
           val bcCenters = sc.broadcast(centers)
     
           // Find the new centers
    -      val newCenters = data.mapPartitions { points =>
    +      val collected = data.mapPartitions { points =>
    --- End diff --
    
    nit: can we find a better name than `collected`?


---

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

Reply via email to