mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r788519 - /lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansJob.java
Date Thu, 25 Jun 2009 21:40:38 GMT
Author: gsingers
Date: Thu Jun 25 21:40:37 2009
New Revision: 788519

URL: http://svn.apache.org/viewvc?rev=788519&view=rev
Log: (empty)

Modified:
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansJob.java

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansJob.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansJob.java?rev=788519&r1=788518&r2=788519&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansJob.java
(original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansJob.java
Thu Jun 25 21:40:37 2009
@@ -32,7 +32,7 @@
 
   public static void main(String[] args) throws IOException, ClassNotFoundException {
 
-    if (args.length != 7) {
+    if (args.length != 8) {
       System.err.println("Expected number of arguments 10 and received:"
           + args.length);
       System.err
@@ -47,7 +47,7 @@
     double convergenceDelta = Double.parseDouble(args[index++]);
     int maxIterations = Integer.parseInt(args[index++]);
     int numCentroids = Integer.parseInt(args[index++]);
-    String vectorClassName = args[6];
+    String vectorClassName = args[index++];
     Class<? extends Vector> vectorClass = (Class<? extends Vector>) Class.forName(vectorClassName);
     runJob(input, clusters, output, measureClass, convergenceDelta,
         maxIterations, numCentroids, vectorClass);



Mime
View raw message