Interface Trainer<S extends Observation,​T extends Category>

    • Method Summary

      Modifier and Type Method 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<S,T> 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
    • Method Detail

      • 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.