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

pub trait Fit<'a, R: Records, T: Targets> {
    type Object: 'a;
    pub fn fit(&self, dataset: &'a 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

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

Loading content...

Implementors

Loading content...