Trait rusty_machine::learning::SupModel [] [src]

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

Trait for supervised model.

Required Methods

Predict output from inputs.

Train the model using inputs and targets.

Implementors