Share this issue
SPARK-11029 added the computeCost method as a temp fix for the lack of proper cluster evaluators. Now SPARK-14516 introduces a proper ClusteringEvaluator, so we should deprecate this method and maybe remove it in the next releases.
Remove KMeans computeCost
Deprecate BisectingKMeans compute cost
[Github] Pull Request #20629 (mgaido91)