Github user mgaido91 commented on a diff in the pull request: https://github.com/apache/spark/pull/20629#discussion_r202425169 --- Diff: mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeansModel.scala --- @@ -37,7 +37,7 @@ import org.apache.spark.sql.{Row, SparkSession} */ @Since("0.8.0") class KMeansModel @Since("2.4.0") (@Since("1.0.0") val clusterCenters: Array[Vector], - @Since("2.4.0") val distanceMeasure: String) + @Since("2.4.0") val distanceMeasure: String, @Since("2.4.0") val trainingCost: Double) --- End diff -- This constructor was introduced by a previous PR for 2.4, so this was never out (therefore I think we don't need to keep it).
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org