public class NaiveBayesTrainer extends AbstractEventTrainer
Modifier and Type | Field and Description |
---|---|
static String |
NAIVE_BAYES_VALUE |
DATA_INDEXER_ONE_PASS_REAL_VALUE, DATA_INDEXER_ONE_PASS_VALUE, DATA_INDEXER_PARAM, DATA_INDEXER_TWO_PASS_VALUE
ALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM, VERBOSE_DEFAULT, VERBOSE_PARAM
EVENT_VALUE
Constructor and Description |
---|
NaiveBayesTrainer() |
NaiveBayesTrainer(TrainingParameters parameters) |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
doTrain(DataIndexer indexer) |
boolean |
isSortAndMerge() |
AbstractModel |
trainModel(DataIndexer di) |
getDataIndexer, isValid, train, train, validate
getAlgorithm, getCutoff, getIterations, init, init
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, init
public static final String NAIVE_BAYES_VALUE
public NaiveBayesTrainer()
public NaiveBayesTrainer(TrainingParameters parameters)
public boolean isSortAndMerge()
isSortAndMerge
in class AbstractEventTrainer
public AbstractModel doTrain(DataIndexer indexer) throws IOException
doTrain
in class AbstractEventTrainer
IOException
public AbstractModel trainModel(DataIndexer di)
Copyright © 2017 The Apache Software Foundation. All rights reserved.