Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/11119#discussion_r56110689
--- Diff: mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala
---
@@ -196,6 +220,14 @@ object KMeansModel extends MLReadable[KMeansModel] {
val model = new KMeansModel(metadata.uid, new
MLlibKMeansModel(clusterCenters))
DefaultParamsReader.getAndSetParams(model, metadata)
+
+ val hasInitialModel = (metadata.metadata \
"hasInitialModel").extract[Boolean]
--- End diff --
It would be nice to maintain backwards compatibility, though we have not
promised it yet. Could you modify this to work with the previous model format
(without this field), where you check the saved spark version?
Same for saving the Estimator KMeans
---
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]