Github user mgaido91 commented on a diff in the pull request:
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala ---
    @@ -46,6 +47,10 @@ class KMeansModel @Since("2.4.0") (@Since("1.0.0") val 
clusterCenters: Array[Vec
       private val clusterCentersWithNorm =
         if (clusterCenters == null) null else 
    +  @Since("2.4.0")
    +  def this(clusterCenters: Array[Vector], distanceMeasure: String) =
    +    this(clusterCenters: Array[Vector], distanceMeasure, -1)
    --- End diff --
    yes, this can happen for instance when reloading a persisted model. 
Moreover this is only for the mllib model, which as far as I know is suggested 
not to be used anymore in favor of the new ml api. Any concern/suggestion about 


To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to