|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.dirichlet.DirichletDriver
public class DirichletDriver
Field Summary | |
---|---|
static java.lang.String |
ALPHA_0_KEY
|
static java.lang.String |
MODEL_FACTORY_KEY
|
static java.lang.String |
MODEL_PROTOTYPE_KEY
|
static java.lang.String |
NUM_CLUSTERS_KEY
|
static java.lang.String |
PROTOTYPE_SIZE_KEY
|
static java.lang.String |
STATE_IN_KEY
|
Method Summary | |
---|---|
static DirichletState<VectorWritable> |
createState(java.lang.String modelFactory,
java.lang.String modelPrototype,
int prototypeSize,
int numModels,
double alpha_0)
Creates a DirichletState object from the given arguments. |
static void |
main(java.lang.String[] args)
|
static void |
runClustering(java.lang.String input,
java.lang.String stateIn,
java.lang.String output)
Run the job using supplied arguments |
static void |
runIteration(java.lang.String input,
java.lang.String stateIn,
java.lang.String stateOut,
java.lang.String modelFactory,
java.lang.String modelPrototype,
int prototypeSize,
int numClusters,
double alpha_0,
int numReducers)
Run the job using supplied arguments |
static void |
runJob(java.lang.String input,
java.lang.String output,
java.lang.String modelFactory,
int numClusters,
int maxIterations,
double alpha_0,
int numReducers)
Deprecated. since it presumes 2-d, dense vector model prototypes |
static void |
runJob(java.lang.String input,
java.lang.String output,
java.lang.String modelFactory,
java.lang.String modelPrototype,
int prototypeSize,
int numClusters,
int maxIterations,
double alpha_0,
int numReducers)
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 |
---|
public static final java.lang.String STATE_IN_KEY
public static final java.lang.String MODEL_FACTORY_KEY
public static final java.lang.String MODEL_PROTOTYPE_KEY
public static final java.lang.String PROTOTYPE_SIZE_KEY
public static final java.lang.String NUM_CLUSTERS_KEY
public static final java.lang.String ALPHA_0_KEY
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
@Deprecated public static void runJob(java.lang.String input, java.lang.String output, java.lang.String modelFactory, int numClusters, int maxIterations, double alpha_0, int numReducers) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.io.IOException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException
input
- the directory pathname for input pointsoutput
- the directory pathname for output pointsmodelFactory
- the String ModelDistribution class name to usenumClusters
- the number of modelsmaxIterations
- the maximum number of iterationsalpha_0
- the alpha_0 value for the DirichletDistributionnumReducers
- the number of Reducers desired
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.IOException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
public static void runJob(java.lang.String input, java.lang.String output, java.lang.String modelFactory, java.lang.String modelPrototype, int prototypeSize, int numClusters, int maxIterations, double alpha_0, int numReducers) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.io.IOException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException
input
- the directory pathname for input pointsoutput
- the directory pathname for output pointsmodelFactory
- the String ModelDistribution class name to usenumClusters
- the number of modelsmaxIterations
- the maximum number of iterationsalpha_0
- the alpha_0 value for the DirichletDistributionnumReducers
- the number of Reducers desired
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.IOException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
public static DirichletState<VectorWritable> createState(java.lang.String modelFactory, java.lang.String modelPrototype, int prototypeSize, int numModels, double alpha_0) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
modelFactory
- a String which is the class name of the model factorymodelPrototype
- a String which is the class name of the Vector used to initialize the factoryprototypeSize
- an int number of dimensions of the model prototype vectornumModels
- an int number of models to be createdalpha_0
- the double alpha_0 argument to the algorithm
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
public static void runIteration(java.lang.String input, java.lang.String stateIn, java.lang.String stateOut, java.lang.String modelFactory, java.lang.String modelPrototype, int prototypeSize, int numClusters, double alpha_0, int numReducers)
input
- the directory pathname for input pointsstateIn
- the directory pathname for input statestateOut
- the directory pathname for output statemodelFactory
- the class name of the model factory classmodelPrototype
- TODOprototypeSize
- TODOnumClusters
- the number of clustersalpha_0
- alpha_0numReducers
- the number of Reducers desiredpublic static void runClustering(java.lang.String input, java.lang.String stateIn, java.lang.String output)
input
- the directory pathname for input pointsstateIn
- the directory pathname for input stateoutput
- the directory pathname for output points
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |