Skip to content

Commit a2b1e57

Browse files
committed
Revert inadvertent update to KMeans
1 parent 9294263 commit a2b1e57

File tree

1 file changed

+0
-1
lines changed
  • mllib/src/main/scala/org/apache/spark/mllib/clustering

1 file changed

+0
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/clustering/KMeans.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ class KMeans private (
131131
}
132132

133133
// Compute squared norms and cache them.
134-
val collected = data.collect()
135134
val norms = data.map(Vectors.norm(_, 2.0))
136135
norms.persist()
137136
val zippedData = data.zip(norms).map { case (v, norm) =>

0 commit comments

Comments
 (0)