diff --git a/mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala b/mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala index 8cd236f27a339..9dfe245155d48 100644 --- a/mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala +++ b/mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala @@ -128,8 +128,7 @@ class KMeansModel private[ml] ( validateAndTransformSchema(schema) } - private[clustering] - def predict(features: Vector): Int = parentModel.predict(features) + private[clustering] def predict(features: Vector): Int = parentModel.predict(features) def clusterCenters: Array[Vector] = parentModel.clusterCenters }