Github user holdenk commented on a diff in the pull request: https://github.com/apache/spark/pull/20629#discussion_r202436972 --- 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 -- That's awesome, lets try and get that fixed up before 2.4 goes so we don't have to any workarounds :)
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org