Interface Trainer<S extends Observation,T extends Category>
- Type Parameters:
S
- The type of the observations.T
- The type of the categories.
- All Known Implementing Classes:
GridSearchParameterLearner
,MultiClassRbfTrainer
,ParameterTrainer
public interface Trainer<S extends Observation,T extends Category>
The `Trainer` interface represents a generic trainer that can train a classifier
on a given set of observations and categories.
- Author:
- Matthias Thimm
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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 timetrain(TrainingSet<S,T> trainingSet)
is used it uses these parameters.train
(TrainingSet<S, T> trainingSet) Trains a classifier on the given training set.train
(TrainingSet<S, T> trainingSet, ParameterSet params) Trains a classifier on the given training set with the given parameters
-
Method Details
-
train
Trains a classifier on the given training set.- Parameters:
trainingSet
- some training set.- Returns:
- a classifier
-
train
Trains a classifier on the given training set with the given parameters- Parameters:
trainingSet
- some training set.params
- parameters for the training.- Returns:
- a classifier
-
getParameterSet
ParameterSet getParameterSet()Returns the set of parameters for this trainer.- Returns:
- the set of parameters for this trainer.
-
setParameterSet
Sets the parameters for this trainer (calling this method must ensure that the next timetrain(TrainingSet<S,T> trainingSet)
is used it uses these parameters.- Parameters:
params
- a parameter set.- Returns:
- true if the operation was successful.
-