-
- Downloads
[SPARK-11029] [ML] Add computeCost to KMeansModel in spark.ml
jira: https://issues.apache.org/jira/browse/SPARK-11029 We should add a method analogous to spark.mllib.clustering.KMeansModel.computeCost to spark.ml.clustering.KMeansModel. This will be a temp fix until we have proper evaluators defined for clustering. Author: Yuhao Yang <hhbyyh@gmail.com> Author: yuhaoyang <yuhao@zhanglipings-iMac.local> Closes #9073 from hhbyyh/computeCost.
Showing
- mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala 12 additions, 0 deletions...rc/main/scala/org/apache/spark/ml/clustering/KMeans.scala
- mllib/src/test/scala/org/apache/spark/ml/clustering/KMeansSuite.scala 1 addition, 0 deletions...st/scala/org/apache/spark/ml/clustering/KMeansSuite.scala
Loading
Please register or sign in to comment