pub struct ConformalPredictionConfig {
pub alpha: f64,
pub nonconformity_method: NonconformityMethod,
pub normalize: bool,
pub class_conditional: bool,
pub random_state: Option<u64>,
pub inductive: bool,
pub calibration_fraction: f64,
}Expand description
Configuration for conformal prediction
Fields§
§alpha: f64Significance level (1 - coverage probability)
nonconformity_method: NonconformityMethodMethod for computing nonconformity scores
normalize: boolWhether to use normalized nonconformity scores
class_conditional: boolMethod for handling class imbalance in classification
random_state: Option<u64>Random state for reproducible results
inductive: boolWhether to use inductive (split) conformal prediction
calibration_fraction: f64Fraction of data to use for calibration in inductive setting
Trait Implementations§
Source§impl Clone for ConformalPredictionConfig
impl Clone for ConformalPredictionConfig
Source§fn clone(&self) -> ConformalPredictionConfig
fn clone(&self) -> ConformalPredictionConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ConformalPredictionConfig
impl Debug for ConformalPredictionConfig
Auto Trait Implementations§
impl Freeze for ConformalPredictionConfig
impl RefUnwindSafe for ConformalPredictionConfig
impl Send for ConformalPredictionConfig
impl Sync for ConformalPredictionConfig
impl Unpin for ConformalPredictionConfig
impl UnwindSafe for ConformalPredictionConfig
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,
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