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_VALUEALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM, VERBOSE_DEFAULT, VERBOSE_PARAMEVENT_VALUE| Constructor and Description |
|---|
NaiveBayesTrainer() |
| Modifier and Type | Method and Description |
|---|---|
AbstractModel |
doTrain(DataIndexer indexer) |
boolean |
isSortAndMerge() |
AbstractModel |
trainModel(DataIndexer di) |
getDataIndexer, isValid, train, traingetAlgorithm, getCutoff, getIterations, init, initequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitpublic static final String NAIVE_BAYES_VALUE
public boolean isSortAndMerge()
isSortAndMerge in class AbstractEventTrainerpublic AbstractModel doTrain(DataIndexer indexer) throws IOException
doTrain in class AbstractEventTrainerIOExceptionpublic AbstractModel trainModel(DataIndexer di)
Copyright © 2017 The Apache Software Foundation. All rights reserved.