Package smile.classification
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
-
Method Details
-
fit
Fits a classification model with the default hyperparameters.- Parameters:
x
- the training samples.y
- the training labels.- Returns:
- the model
-
fit
Fits a classification model.- Parameters:
x
- the training samples.y
- the training labels.params
- the hyperparameters.- Returns:
- the model
-