org.apache.mahout.classifier.bayes.mapreduce.bayes
Class BayesClassifierDriver

java.lang.Object
  extended by org.apache.mahout.classifier.bayes.mapreduce.bayes.BayesClassifierDriver

public final class BayesClassifierDriver
extends Object

Create and run the Bayes Classifier


Method Summary
static void confusionMatrixSeqFileExport(Parameters params, ConfusionMatrix matrix)
           
static ConfusionMatrix readResult(org.apache.hadoop.fs.Path pathPattern, org.apache.hadoop.conf.Configuration conf, Parameters params)
           
static void runJob(Parameters params)
          Run the job
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.