public abstract class AbstractTrainer extends Object implements TrainingAlgorithm
Modifier | Constructor and Description |
---|---|
protected |
AbstractTrainer() |
|
AbstractTrainer(DP dp) |
Modifier and Type | Method and Description |
---|---|
double |
getCurrentScore() |
int |
getCycle() |
DP |
getDP() |
double |
getLastScore() |
protected abstract double |
singleSequenceIteration(ModelTrainer trainer,
SymbolList symList) |
void |
train(SequenceDB db,
double nullModelWeight,
StoppingCriteria stopper)
Trains the sequences in db until stopper says to finnish.
|
public AbstractTrainer(DP dp)
protected AbstractTrainer()
public double getLastScore()
getLastScore
in interface TrainingAlgorithm
public double getCurrentScore()
getCurrentScore
in interface TrainingAlgorithm
public int getCycle()
getCycle
in interface TrainingAlgorithm
public DP getDP()
getDP
in interface TrainingAlgorithm
protected abstract double singleSequenceIteration(ModelTrainer trainer, SymbolList symList) throws IllegalSymbolException, IllegalTransitionException, IllegalAlphabetException
public void train(SequenceDB db, double nullModelWeight, StoppingCriteria stopper) throws IllegalSymbolException, BioException
train
in interface TrainingAlgorithm
IllegalSymbolException
BioException
Copyright © 2014 BioJava. All rights reserved.