Interface Classifier.Trainer<T,M extends Classifier<T>>

Type Parameters:
T - the type of model input object.
M - the type of model.
Enclosing interface:
Classifier<T>

public static interface Classifier.Trainer<T,M extends Classifier<T>>
The classifier trainer.
  • Method Summary

    Modifier and Type
    Method
    Description
    default M
    fit(T[] x, int[] y)
    Fits a classification model with the default hyper-parameters.
    fit(T[] x, int[] y, Properties params)
    Fits a classification model.
  • Method Details

    • fit

      default M fit(T[] x, int[] y)
      Fits a classification model with the default hyper-parameters.
      Parameters:
      x - the training samples.
      y - the training labels.
      Returns:
      the model
    • fit

      M fit(T[] x, int[] y, Properties params)
      Fits a classification model.
      Parameters:
      x - the training samples.
      y - the training labels.
      params - the hyper-parameters.
      Returns:
      the model