Github user mgaido91 commented on a diff in the pull request:
https://github.com/apache/spark/pull/20701#discussion_r175292026
--- 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 clusterCenters.map(new
VectorWithNorm(_))
+ @Since("2.4.0")
--- End diff --
I think this is the right one. 0.8.0 is the annotation for the
`KMeansModel` class, while the previous main constructor was added (by me) is a
previous PR for 2.4.0 in order to add the `distanceMeasure` variable.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]