pub struct LinearPredictionProvider;Expand description
Standard linear prediction provider
Trait Implementations§
Source§impl Debug for LinearPredictionProvider
impl Debug for LinearPredictionProvider
Source§impl PredictionProvider for LinearPredictionProvider
impl PredictionProvider for LinearPredictionProvider
fn predict( &self, features: &Array2<Float>, coefficients: &Array1<Float>, intercept: Option<Float>, ) -> Result<Array1<Float>>
fn predict_with_confidence( &self, features: &Array2<Float>, coefficients: &Array1<Float>, intercept: Option<Float>, confidence_level: Float, ) -> Result<PredictionWithConfidence>
Source§fn predict_with_uncertainty(
&self,
features: &Array2<Float>,
coefficients: &Array1<Float>,
intercept: Option<Float>,
) -> Result<PredictionWithUncertainty>
fn predict_with_uncertainty( &self, features: &Array2<Float>, coefficients: &Array1<Float>, intercept: Option<Float>, ) -> Result<PredictionWithUncertainty>
Prediction with uncertainty quantification (if supported)
Source§fn supports_confidence_intervals(&self) -> bool
fn supports_confidence_intervals(&self) -> bool
Check if this provider supports confidence intervals
Source§fn supports_uncertainty_quantification(&self) -> bool
fn supports_uncertainty_quantification(&self) -> bool
Check if this provider supports uncertainty quantification
Auto Trait Implementations§
impl Freeze for LinearPredictionProvider
impl RefUnwindSafe for LinearPredictionProvider
impl Send for LinearPredictionProvider
impl Sync for LinearPredictionProvider
impl Unpin for LinearPredictionProvider
impl UnwindSafe for LinearPredictionProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more