pub struct UncertaintyQuantifier { /* private fields */ }Expand description
Uncertainty quantification engine
Implementations§
Source§impl UncertaintyQuantifier
impl UncertaintyQuantifier
Sourcepub fn new(config: UncertaintyConfig) -> Self
pub fn new(config: UncertaintyConfig) -> Self
Create a new uncertainty quantifier
Sourcepub fn bootstrap_uncertainty<F>(
&self,
X_train: &Array2<Float>,
y_train: &Array1<Float>,
X_test: &Array2<Float>,
fit_predict_fn: F,
) -> Result<UncertaintyResult>
pub fn bootstrap_uncertainty<F>( &self, X_train: &Array2<Float>, y_train: &Array1<Float>, X_test: &Array2<Float>, fit_predict_fn: F, ) -> Result<UncertaintyResult>
Quantify uncertainty using bootstrap method
Sourcepub fn bayesian_uncertainty(
&self,
posterior_samples: &Array2<Float>,
X_test: &Array2<Float>,
noise_precision: Float,
) -> Result<UncertaintyResult>
pub fn bayesian_uncertainty( &self, posterior_samples: &Array2<Float>, X_test: &Array2<Float>, noise_precision: Float, ) -> Result<UncertaintyResult>
Quantify uncertainty using Bayesian approach
Sourcepub fn conformal_uncertainty<F>(
&self,
X_cal: &Array2<Float>,
y_cal: &Array1<Float>,
X_test: &Array2<Float>,
predict_fn: F,
) -> Result<UncertaintyResult>
pub fn conformal_uncertainty<F>( &self, X_cal: &Array2<Float>, y_cal: &Array1<Float>, X_test: &Array2<Float>, predict_fn: F, ) -> Result<UncertaintyResult>
Quantify uncertainty using conformal prediction
Sourcepub fn ensemble_uncertainty(
&self,
ensemble_predictions: &Array2<Float>,
) -> Result<UncertaintyResult>
pub fn ensemble_uncertainty( &self, ensemble_predictions: &Array2<Float>, ) -> Result<UncertaintyResult>
Quantify uncertainty using ensemble approach
Trait Implementations§
Source§impl Debug for UncertaintyQuantifier
impl Debug for UncertaintyQuantifier
Auto Trait Implementations§
impl Freeze for UncertaintyQuantifier
impl RefUnwindSafe for UncertaintyQuantifier
impl Send for UncertaintyQuantifier
impl Sync for UncertaintyQuantifier
impl Unpin for UncertaintyQuantifier
impl UnwindSafe for UncertaintyQuantifier
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