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> 
- Author:
 - Matthias Thimm
 
- 
Method Summary
Modifier and TypeMethodDescriptionReturns the set of parameters for this trainer.booleansetParameterSet(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.
 
 
 -