Trait linfa::traits::Fit[][src]

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

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

Loading content...

Required methods

fn fit(&self, dataset: &DatasetBase<R, T>) -> Result<Self::Object, E>[src]

Loading content...

Implementors

Loading content...