org.apache.mahout.classifier.bayes.mapreduce.bayes
Class BayesClassifierDriver
java.lang.Object
org.apache.mahout.classifier.bayes.mapreduce.bayes.BayesClassifierDriver
public final class BayesClassifierDriver
- extends Object
Create and run the Bayes Classifier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
runJob
public static void runJob(Parameters params)
throws IOException
- Run the job
- Parameters:
params
- The Job parameters containing the gramSize, input output folders, defaultCat, encoding
- Throws:
IOException
readResult
public static ConfusionMatrix readResult(org.apache.hadoop.fs.Path pathPattern,
org.apache.hadoop.conf.Configuration conf,
Parameters params)
confusionMatrixSeqFileExport
public static void confusionMatrixSeqFileExport(Parameters params,
ConfusionMatrix matrix)
throws IOException
- Throws:
IOException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.