org.apache.mahout.classifier.naivebayes.training
Class TrainNaiveBayesJob
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.mahout.common.AbstractJob
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)
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 |
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
TrainNaiveBayesJob
public TrainNaiveBayesJob()
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.