1 2 3 4 5 6 7 8 9
//! Commonly used regression models. pub mod linear; /// Trait to interface with a fitted regression model. pub trait Regressor<Input, Output> { /// Predict input based on previously fitted data. fn predict(&self, input: &Input) -> Option<Output>; }