We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1472ec5 commit a4a316bCopy full SHA for a4a316b
mllib/src/main/scala/org/apache/spark/mllib/clustering/StreamingKMeans.scala
@@ -83,7 +83,7 @@ class StreamingKMeansModel(
83
(p1._1 += p2._1, p1._2 + p2._2)
84
}
85
val pointStats: Array[(Int, (BV[Double], Long))] =
86
- closest.reduceByKey{mergeContribs}.collectAsMap().toArray
+ closest.reduceByKey(mergeContribs).collect()
87
88
// implement update rule
89
for (newP <- pointStats) {
0 commit comments