org.apache.mahout.classifier.naivebayes.training
Class TrainNaiveBayesJob

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.mahout.common.AbstractJob
          extended by org.apache.mahout.classifier.naivebayes.training.TrainNaiveBayesJob
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public final class TrainNaiveBayesJob
extends AbstractJob

This class trains a Naive Bayes Classifier (Parameters for both Naive Bayes and Complementary Naive Bayes)


Field Summary
static String LABEL_THETA_NORMALIZER
           
static String SUMMED_OBSERVATIONS
           
static String THETAS
           
static String WEIGHTS
           
static String WEIGHTS_PER_FEATURE
           
static String WEIGHTS_PER_LABEL
           
 
Fields inherited from class org.apache.mahout.common.AbstractJob
argMap, inputFile, inputPath, outputFile, outputPath, tempPath
 
Constructor Summary
TrainNaiveBayesJob()
           
 
Method Summary
static void main(String[] args)
           
 int run(String[] args)
           
 
Methods inherited from class org.apache.mahout.common.AbstractJob
addFlag, addInputOption, addOption, addOption, addOption, addOption, addOutputOption, buildOption, buildOption, getAnalyzerClassFromOption, getCLIOption, getConf, getDimensions, getFloat, getFloat, getGroup, getInputFile, getInputPath, getInt, getInt, getOption, getOption, getOption, getOptions, getOutputFile, getOutputPath, getOutputPath, getTempPath, getTempPath, hasOption, keyFor, maybePut, parseArguments, parseArguments, parseDirectories, prepareJob, prepareJob, prepareJob, prepareJob, setConf, setS3SafeCombinedInputPath, shouldRunNextPhase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEIGHTS_PER_FEATURE

public static final String WEIGHTS_PER_FEATURE
See Also:
Constant Field Values

WEIGHTS_PER_LABEL

public static final String WEIGHTS_PER_LABEL
See Also:
Constant Field Values

LABEL_THETA_NORMALIZER

public static final String LABEL_THETA_NORMALIZER
See Also:
Constant Field Values

SUMMED_OBSERVATIONS

public static final String SUMMED_OBSERVATIONS
See Also:
Constant Field Values

WEIGHTS

public static final String WEIGHTS
See Also:
Constant Field Values

THETAS

public static final String THETAS
See Also:
Constant Field Values
Constructor Detail

TrainNaiveBayesJob

public TrainNaiveBayesJob()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

run

public int run(String[] args)
        throws Exception
Throws:
Exception


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.