Trait PredictorBorrow

Source
pub trait PredictorBorrow<'a, X, T> {
    // Required method
    fn predict(&self, x: &'a X) -> Result<Vec<T>, Failed>;
}
Expand description

Implements method predict that estimates target value from new data, with borrowing

Required Methods§

Source

fn predict(&self, x: &'a X) -> Result<Vec<T>, Failed>

Estimate target values from new data.

  • x - NxM matrix with N observations and M features in each observation.

Implementors§

Source§

impl<'a, T: Number + FloatNumber + PartialOrd, X: Array2<T>, Y: Array1<T>> PredictorBorrow<'a, X, T> for SVR<'a, T, X, Y>

Source§

impl<'a, TX: Number + RealNumber, TY: Number + Ord, X: Array2<TX>, Y: Array1<TY>> PredictorBorrow<'a, X, TX> for SVC<'a, TX, TY, X, Y>