org.apache.mahout.clustering.kmeans
Class KMeansDriver

java.lang.Object
  extended by org.apache.mahout.clustering.kmeans.KMeansDriver

public final class KMeansDriver
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_OUTPUT_DIRECTORY
          The name of the directory used to output final results.
 
Method Summary
static void main(java.lang.String[] args)
           
static void runJob(java.lang.String input, java.lang.String clustersIn, java.lang.String output, java.lang.String measureClass, double convergenceDelta, int maxIterations, int numReduceTasks)
          Run the job using supplied arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OUTPUT_DIRECTORY

public static final java.lang.String DEFAULT_OUTPUT_DIRECTORY
The name of the directory used to output final results.

See Also:
Constant Field Values
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args - Expects 7 args and they all correspond to the order of the params in runJob(java.lang.String, java.lang.String, java.lang.String, java.lang.String, double, int, int)
Throws:
java.lang.Exception

runJob

public static void runJob(java.lang.String input,
                          java.lang.String clustersIn,
                          java.lang.String output,
                          java.lang.String measureClass,
                          double convergenceDelta,
                          int maxIterations,
                          int numReduceTasks)
Run the job using supplied arguments

Parameters:
input - the directory pathname for input points
clustersIn - the directory pathname for initial & computed clusters
output - the directory pathname for output points
measureClass - the classname of the DistanceMeasure
convergenceDelta - the convergence delta value
maxIterations - the maximum number of iterations
numReduceTasks - the number of reducers


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.