pub trait Predictive {
// Required method
fn predict_outcome(&self, predictor: f64) -> f64;
// Provided method
fn boxed(self) -> DynModel
where Self: Sized + Display + 'static { ... }
}
Available on crate feature
regression
only.Expand description
Something that can predict the outcome from a predictor.
Required Methods§
sourcefn predict_outcome(&self, predictor: f64) -> f64
fn predict_outcome(&self, predictor: f64) -> f64
Calculates the predicted outcome of predictor
.