Trait linfa::traits::PredictInplace
source · pub trait PredictInplace<R: Records, T> {
fn predict_inplace<'a>(&'a self, x: &'a R, y: &mut T);
fn default_target(&self, x: &R) -> T;
}
Expand description
Predict with model into a mutable reference of targets.
Required Methods§
sourcefn predict_inplace<'a>(&'a self, x: &'a R, y: &mut T)
fn predict_inplace<'a>(&'a self, x: &'a R, y: &mut T)
Predict something in place
sourcefn default_target(&self, x: &R) -> T
fn default_target(&self, x: &R) -> T
Create targets that predict_inplace
works with.