Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/19340#discussion_r162397198
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala ---
@@ -149,4 +171,39 @@ object KMeansModel extends Loader[KMeansModel] {
new KMeansModel(localCentroids.sortBy(_.id).map(_.point))
}
}
+
+ private[clustering] object SaveLoadV2_0 {
+
+ private val thisFormatVersion = "2.0"
+
+ private[clustering]
+ val thisClassName = "org.apache.spark.mllib.clustering.KMeansModel"
--- End diff --
Nit: likewise would break after the equals
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]