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

    https://github.com/apache/spark/pull/11119#discussion_r56110686
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala 
---
    @@ -169,12 +181,23 @@ object KMeansModel extends MLReadable[KMeansModel] {
     
       /** [[MLWriter]] instance for [[KMeansModel]] */
       private[KMeansModel] class KMeansModelWriter(instance: KMeansModel) 
extends MLWriter {
    +    import org.json4s.JsonDSL._
     
         private case class Data(clusterCenters: Array[Vector])
     
         override protected def saveImpl(path: String): Unit = {
    -      // Save metadata and Params
    -      DefaultParamsWriter.saveMetadata(instance, path, sc)
    +      if (instance.isSet(instance.initialModel)) {
    +        val initialModelPath = new Path(path, "initial-model").toString
    --- End diff --
    
    I'd prefer path name "initialModel" to match existing patterns.


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