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 Type
    Method
    Description
    Returns the set of parameters for this trainer.
    boolean
    Sets the parameters for this trainer (calling this method must ensure that the next time train(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

      Classifier train(TrainingSet<S,T> trainingSet)
      Trains a classifier on the given training set.
      Parameters:
      trainingSet - some training set.
      Returns:
      a classifier
    • train

      Classifier train(TrainingSet<S,T> trainingSet, ParameterSet params)
      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

      boolean setParameterSet(ParameterSet params)
      Sets the parameters for this trainer (calling this method must ensure that the next time train(TrainingSet<S,T> trainingSet) is used it uses these parameters.
      Parameters:
      params - a parameter set.
      Returns:
      true if the operation was successful.