Permalink
Browse files

A few cosmetic changes for JavaKMeans

  • Loading branch information...
1 parent 568ddf7 commit 9fa47a2039273c4318fafbe78f8253921984b70d @MLnick committed Mar 19, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 examples/src/main/java/spark/examples/JavaKMeans.java
View
5 examples/src/main/java/spark/examples/JavaKMeans.java
@@ -11,6 +11,9 @@
import java.util.List;
import java.util.Map;
+/**
+ * K-means clustering using Java API.
+ */
public class JavaKMeans {
/** Parses numbers split by whitespace to a vector */
@@ -50,7 +53,7 @@ static Vector average(List<Vector> ps) {
public static void main(String[] args) throws Exception {
if (args.length < 4) {
- System.err.println("Usage: SparkKMeans <master> <file> <k> <convergeDist>");
+ System.err.println("Usage: JavaKMeans <master> <file> <k> <convergeDist>");
System.exit(1);
}
JavaSparkContext sc = new JavaSparkContext(args[0], "JavaKMeans",

0 comments on commit 9fa47a2

Please sign in to comment.