pub struct ConformalPredictionSet {
pub quantile_threshold: f64,
pub current_score: f64,
pub bayesian_action_in_set: bool,
pub admissible_actions: Vec<DecisionAction>,
pub empirical_coverage: f64,
}Expand description
Conformal prediction set: which actions are admissible at significance level alpha.
Fields§
§quantile_threshold: f64The conformal quantile threshold at significance level alpha.
current_score: f64The nonconformity score of the current decision.
bayesian_action_in_set: boolWhether the Bayesian argmin action is inside the conformal set.
admissible_actions: Vec<DecisionAction>Actions that are admissible (score <= threshold).
empirical_coverage: f64Empirical coverage rate over the calibration window.
Trait Implementations§
Source§impl Clone for ConformalPredictionSet
impl Clone for ConformalPredictionSet
Source§fn clone(&self) -> ConformalPredictionSet
fn clone(&self) -> ConformalPredictionSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConformalPredictionSet
impl Debug for ConformalPredictionSet
Source§impl<'de> Deserialize<'de> for ConformalPredictionSet
impl<'de> Deserialize<'de> for ConformalPredictionSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConformalPredictionSet
impl PartialEq for ConformalPredictionSet
Source§fn eq(&self, other: &ConformalPredictionSet) -> bool
fn eq(&self, other: &ConformalPredictionSet) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConformalPredictionSet
impl Serialize for ConformalPredictionSet
impl StructuralPartialEq for ConformalPredictionSet
Auto Trait Implementations§
impl Freeze for ConformalPredictionSet
impl RefUnwindSafe for ConformalPredictionSet
impl Send for ConformalPredictionSet
impl Sync for ConformalPredictionSet
impl Unpin for ConformalPredictionSet
impl UnsafeUnpin for ConformalPredictionSet
impl UnwindSafe for ConformalPredictionSet
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
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