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

pub trait Fit<'a, R: Records, T> {
    type Object: 'a;
    fn fit(&self, dataset: &DatasetBase<R, T>) -> Self::Object;
}

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

type Object: 'a[src]

Loading content...

Required methods

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

Loading content...

Implementors

Loading content...