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

    https://github.com/apache/spark/pull/8507#discussion_r38670980
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala ---
    @@ -125,16 +126,19 @@ object KMeansModel extends Loader[KMeansModel] {
     
         def save(sc: SparkContext, model: KMeansModel, path: String): Unit = {
           val sqlContext = new SQLContext(sc)
    -      import sqlContext.implicits._
           val metadata = compact(render(
             ("class" -> thisClassName) ~ ("version" -> thisFormatVersion) ~ 
("k" -> model.k)))
           sc.parallelize(Seq(metadata), 
1).saveAsTextFile(Loader.metadataPath(path))
    -      val dataRDD = sc.parallelize(model.clusterCenters.zipWithIndex).map 
{ case (point, id) =>
    -        Cluster(id, point)
    --- End diff --
    
    Is `Cluster` still being used? If not please remove the private case class.
    
    Ditto for any others that I may have missed?


---
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]

Reply via email to