org.apache.mahout.clustering.kmeans
Class KMeansDriver
java.lang.Object
org.apache.mahout.clustering.kmeans.KMeansDriver
public final class KMeansDriver
- extends java.lang.Object
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 |
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
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 pointsclustersIn
- the directory pathname for initial & computed clustersoutput
- the directory pathname for output pointsmeasureClass
- the classname of the DistanceMeasureconvergenceDelta
- the convergence delta valuemaxIterations
- the maximum number of iterationsnumReduceTasks
- the number of reducers
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.