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 be33a0c commit 4c7623fCopy full SHA for 4c7623f
mllib/src/main/scala/org/apache/spark/mllib/clustering/PowerIterationClustering.scala
@@ -265,7 +265,7 @@ object PowerIterationClustering extends Logging {
265
GraphImpl.fromExistingRDDs(vD, graph.edges)
266
.mapTriplets(
267
e => e.attr / math.max(e.srcAttr, MLUtils.EPSILON),
268
- TripletFields.Src)
+ TripletFields.All)
269
}
270
271
/**
@@ -385,7 +385,6 @@ object PowerIterationClustering extends Logging {
385
val points = v.mapValues(x => Vectors.dense(x)).cache()
386
val model = new KMeans()
387
.setK(k)
388
- .setRuns(5)
389
.setSeed(0L)
390
.run(points.values)
391
points.mapValues(p => model.predict(p)).cache()
0 commit comments