Trait rusty_machine::learning::SupModel
[−]
[src]
pub trait SupModel<T, U> {
fn predict(&self, inputs: &T) -> U;
fn train(&mut self, inputs: &T, targets: &U);
}Trait for supervised model.
Required Methods
fn predict(&self, inputs: &T) -> U
Predict output from inputs.
fn train(&mut self, inputs: &T, targets: &U)
Train the model using inputs and targets.