org.apache.mahout.clustering.syntheticcontrol.dirichlet
Class Job
java.lang.Object
org.apache.mahout.clustering.syntheticcontrol.dirichlet.Job
public class Job
- extends java.lang.Object
Method Summary |
static void |
main(java.lang.String[] args)
|
static void |
printResults(java.lang.String output,
java.lang.String modelDistribution,
java.lang.String vectorClassName,
int prototypeSize,
int numIterations,
int numModels,
double alpha_0)
Prints out all of the clusters during each iteration |
static void |
runJob(java.lang.String input,
java.lang.String output,
java.lang.String modelFactory,
int numModels,
int maxIterations,
double alpha_0,
int numReducers,
java.lang.String vectorClassName)
Run the job using supplied arguments, deleting the output directory if it exists beforehand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
runJob
public static void runJob(java.lang.String input,
java.lang.String output,
java.lang.String modelFactory,
int numModels,
int maxIterations,
double alpha_0,
int numReducers,
java.lang.String vectorClassName)
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.SecurityException,
java.lang.IllegalArgumentException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException
- Run the job using supplied arguments, deleting the output directory if it exists beforehand
- Parameters:
input
- the directory pathname for input pointsoutput
- the directory pathname for output pointsmodelFactory
- the ModelDistribution class namenumModels
- the number of ModelsmaxIterations
- the maximum number of iterationsalpha_0
- the alpha0 value for the DirichletDistributionnumReducers
- the desired number of reducers
- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.SecurityException
java.io.IOException
printResults
public static void printResults(java.lang.String output,
java.lang.String modelDistribution,
java.lang.String vectorClassName,
int prototypeSize,
int numIterations,
int numModels,
double alpha_0)
throws java.lang.SecurityException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException
- Prints out all of the clusters during each iteration
- Parameters:
output
- the String output directorymodelDistribution
- the String class name of the ModelDistributionvectorClassName
- the String class name of the Vector to useprototypeSize
- the size of the Vector prototype for the Dirichlet ModelsnumIterations
- the int number of IterationsnumModels
- the int number of modelsalpha_0
- the double alpha_0 value
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.SecurityException
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.