pub trait Fit<R: Records, T, E: Error + From<Error>> {
    type Object;
    fn fit(&self, dataset: &DatasetBase<R, T>) -> Result<Self::Object, E>;
}
Expand description

Fittable algorithms

A fittable algorithm takes a dataset and creates a concept of some kind about it. For example in KMeans this would be the mean values for each class, or in SVM the separating hyperplane. It returns a model, which can be used to predict targets for new data.

Associated Types

Required methods

Implementors

Performs checking step and calls fit on the checked hyperparameters. If checking failed, the checking error is converted to the original error type of Fit and returned.