S
- The type of the observations.T
- The type of the categories.public interface Trainer<S extends Observation,T extends Category>
Modifier and Type | Method and Description |
---|---|
ParameterSet |
getParameterSet()
Returns the set of parameters for this trainer.
|
boolean |
setParameterSet(ParameterSet params)
Sets the parameters for this trainer (calling this
method must ensure that the next time
train(TrainingSet
is used it uses these parameters. |
Classifier |
train(TrainingSet<S,T> trainingSet)
Trains a classifier on the given training set.
|
Classifier |
train(TrainingSet<S,T> trainingSet,
ParameterSet params)
Trains a classifier on the given training set with the given parameters
|
Classifier train(TrainingSet<S,T> trainingSet)
trainingSet
- some training set.Classifier train(TrainingSet<S,T> trainingSet, ParameterSet params)
trainingSet
- some training set.params
- parameters for the training.ParameterSet getParameterSet()
boolean setParameterSet(ParameterSet params)
train(TrainingSet trainingSet)
is used it uses these parameters.params
- a parameter set.