Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/20629#discussion_r202423675
--- 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 --
Since we changed the constructor here, and since it is not private, we
should provide a similar (and deprecated) constructor without training cost
which calls this with the default value.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]