Skip to content

Commit 4c7623f

Browse files
committed
Remove setRun and fix PowerIterationClustering failed test.
1 parent be33a0c commit 4c7623f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ object PowerIterationClustering extends Logging {
265265
GraphImpl.fromExistingRDDs(vD, graph.edges)
266266
.mapTriplets(
267267
e => e.attr / math.max(e.srcAttr, MLUtils.EPSILON),
268-
TripletFields.Src)
268+
TripletFields.All)
269269
}
270270

271271
/**
@@ -385,7 +385,6 @@ object PowerIterationClustering extends Logging {
385385
val points = v.mapValues(x => Vectors.dense(x)).cache()
386386
val model = new KMeans()
387387
.setK(k)
388-
.setRuns(5)
389388
.setSeed(0L)
390389
.run(points.values)
391390
points.mapValues(p => model.predict(p)).cache()

0 commit comments

Comments
 (0)