pub struct BayesianPredictionProvider {
pub posterior_covariance: Option<Array2<Float>>,
}Expand description
Bayesian prediction provider with uncertainty quantification
Fields§
§posterior_covariance: Option<Array2<Float>>Posterior covariance matrix
Implementations§
Trait Implementations§
Source§impl Debug for BayesianPredictionProvider
impl Debug for BayesianPredictionProvider
Source§impl PredictionProvider for BayesianPredictionProvider
impl PredictionProvider for BayesianPredictionProvider
fn predict( &self, features: &Array2<Float>, coefficients: &Array1<Float>, intercept: Option<Float>, ) -> Result<Array1<Float>>
Source§fn supports_uncertainty_quantification(&self) -> bool
fn supports_uncertainty_quantification(&self) -> bool
Check if this provider supports uncertainty quantification
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)
fn predict_with_confidence( &self, features: &Array2<Float>, coefficients: &Array1<Float>, intercept: Option<Float>, confidence_level: Float, ) -> Result<PredictionWithConfidence>
Source§fn supports_confidence_intervals(&self) -> bool
fn supports_confidence_intervals(&self) -> bool
Check if this provider supports confidence intervals
Auto Trait Implementations§
impl Freeze for BayesianPredictionProvider
impl RefUnwindSafe for BayesianPredictionProvider
impl Send for BayesianPredictionProvider
impl Sync for BayesianPredictionProvider
impl Unpin for BayesianPredictionProvider
impl UnwindSafe for BayesianPredictionProvider
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