Package smile.classification
Interface DataFrameClassifier.Trainer<M extends DataFrameClassifier>
- Type Parameters:
M
- the type of model.
- Enclosing interface:
- DataFrameClassifier
public static interface DataFrameClassifier.Trainer<M extends DataFrameClassifier>
The classifier trainer.
-
Method Summary
Modifier and TypeMethodDescriptiondefault M
fit
(smile.data.formula.Formula formula, smile.data.DataFrame data) Fits a classification model with the default hyper-parameters.fit
(smile.data.formula.Formula formula, smile.data.DataFrame data, Properties params) Fits a classification model.
-
Method Details
-
fit
Fits a classification model with the default hyper-parameters.- Parameters:
formula
- a symbolic description of the model to be fitted.data
- the data frame of the explanatory and response variables.- Returns:
- the model
-
fit
Fits a classification model.- Parameters:
formula
- a symbolic description of the model to be fitted.data
- the data frame of the explanatory and response variables.params
- the hyper-parameters.- Returns:
- the model
-