Skip to content
Snippets Groups Projects
Commit 0a4b620f authored by Zheng RuiFeng's avatar Zheng RuiFeng Committed by Xiangrui Meng
Browse files

[SPARK-13551][MLLIB] Fix wrong comment and remove meanless lines in...

[SPARK-13551][MLLIB] Fix wrong comment and remove meanless lines in mllib.JavaBisectingKMeansExample

JIRA: https://issues.apache.org/jira/browse/SPARK-13551

## What changes were proposed in this pull request?

Fix wrong comment and remove meanless lines in mllib.JavaBisectingKMeansExample

## How was this patch tested?

manual test

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes #11429 from zhengruifeng/mllib_bkm_je.
parent c7fccb56
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ import org.apache.spark.mllib.linalg.Vectors;
// $example off$
/**
* Java example for graph clustering using power iteration clustering (PIC).
* Java example for bisecting k-means clustering.
*/
public class JavaBisectingKMeansExample {
public static void main(String[] args) {
......@@ -54,9 +54,7 @@ public class JavaBisectingKMeansExample {
BisectingKMeansModel model = bkm.run(data);
System.out.println("Compute Cost: " + model.computeCost(data));
for (Vector center: model.clusterCenters()) {
System.out.println("");
}
Vector[] clusterCenters = model.clusterCenters();
for (int i = 0; i < clusterCenters.length; i++) {
Vector clusterCenter = clusterCenters[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment