org.apache.mahout.clustering.dirichlet
Class DirichletJob

java.lang.Object
  extended by org.apache.mahout.clustering.dirichlet.DirichletJob

public final class DirichletJob
extends java.lang.Object


Method Summary
static void main(java.lang.String[] args)
           
static void runJob(java.lang.String input, java.lang.String output, java.lang.String modelFactory, java.lang.String modelPrototype, int prototypeSize, int numModels, int maxIterations, double alpha_0)
          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,
                          java.lang.String modelPrototype,
                          int prototypeSize,
                          int numModels,
                          int maxIterations,
                          double alpha_0)
                   throws java.io.IOException,
                          java.lang.ClassNotFoundException,
                          java.lang.InstantiationException,
                          java.lang.IllegalAccessException,
                          java.lang.SecurityException,
                          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
modelPrototype - the Vector class name used by the modelFactory
prototypeSize - the size of the prototype vector
numModels - the number of Models
maxIterations - the maximum number of iterations
alpha_0 - the alpha0 value for the DirichletDistribution
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException


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