Trait rusty_machine::learning::UnSupModel [] [src]

pub trait UnSupModel<T, U> {
    fn predict(&self, inputs: &T) -> U;
    fn train(&mut self, inputs: &T);
}

Trait for unsupervised model.

Required Methods

fn predict(&self, inputs: &T) -> U

Predict output from inputs.

fn train(&mut self, inputs: &T)

Train the model using inputs.

Implementors