org.apache.mahout.clustering.syntheticcontrol.dirichlet
Class Job

java.lang.Object
  extended by 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
 

Method Detail

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 points
output - the directory pathname for output points
modelFactory - the ModelDistribution class name
numModels - the number of Models
maxIterations - the maximum number of iterations
alpha_0 - the alpha0 value for the DirichletDistribution
numReducers - 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 directory
modelDistribution - the String class name of the ModelDistribution
vectorClassName - the String class name of the Vector to use
prototypeSize - the size of the Vector prototype for the Dirichlet Models
numIterations - the int number of Iterations
numModels - the int number of models
alpha_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.