public abstract class AbstractEventTrainer extends AbstractTrainer implements EventTrainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_INDEXER_ONE_PASS_VALUE |
static java.lang.String |
DATA_INDEXER_PARAM |
static java.lang.String |
DATA_INDEXER_TWO_PASS_VALUE |
ALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM
EVENT_VALUE
Constructor and Description |
---|
AbstractEventTrainer() |
Modifier and Type | Method and Description |
---|---|
abstract MaxentModel |
doTrain(DataIndexer indexer) |
DataIndexer |
getDataIndexer(ObjectStream<Event> events) |
abstract boolean |
isSortAndMerge() |
boolean |
isValid() |
MaxentModel |
train(ObjectStream<Event> events) |
getAlgorithm, getCutoff, getIterations, init
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public static final java.lang.String DATA_INDEXER_PARAM
public static final java.lang.String DATA_INDEXER_ONE_PASS_VALUE
public static final java.lang.String DATA_INDEXER_TWO_PASS_VALUE
public boolean isValid()
isValid
in class AbstractTrainer
public abstract boolean isSortAndMerge()
public DataIndexer getDataIndexer(ObjectStream<Event> events) throws java.io.IOException
java.io.IOException
public abstract MaxentModel doTrain(DataIndexer indexer) throws java.io.IOException
java.io.IOException
public final MaxentModel train(ObjectStream<Event> events) throws java.io.IOException
train
in interface EventTrainer
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved