public class SimplePerceptronSequenceTrainer extends AbstractEventModelSequenceTrainer
Modifier and Type | Field and Description |
---|---|
static String |
PERCEPTRON_SEQUENCE_VALUE |
ALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM, VERBOSE_DEFAULT, VERBOSE_PARAM
SEQUENCE_VALUE
Constructor and Description |
---|
SimplePerceptronSequenceTrainer() |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
doTrain(SequenceStream events) |
boolean |
isValid()
Deprecated.
|
void |
nextIteration(int iteration) |
AbstractModel |
trainModel(int iterations,
SequenceStream sequenceStream,
int cutoff,
boolean useAverage) |
void |
validate()
Check parameters.
|
train
getAlgorithm, getCutoff, getIterations, init, init
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, init
public static final String PERCEPTRON_SEQUENCE_VALUE
public void validate()
AbstractTrainer
validate
in class AbstractTrainer
@Deprecated public boolean isValid()
isValid
in class AbstractTrainer
public AbstractModel doTrain(SequenceStream events) throws IOException
doTrain
in class AbstractEventModelSequenceTrainer
IOException
public AbstractModel trainModel(int iterations, SequenceStream sequenceStream, int cutoff, boolean useAverage) throws IOException
IOException
public void nextIteration(int iteration) throws IOException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.