pub enum WorstCaseScenario {
AdversarialExamples {
epsilon: Float,
attack_method: AdversarialAttackMethod,
targeted: bool,
},
DistributionShift {
shift_type: DistributionShiftType,
severity: Float,
},
ExtremeOutliers {
outlier_fraction: Float,
outlier_magnitude: Float,
},
ClassImbalance {
minority_fraction: Float,
imbalance_ratio: Float,
},
FeatureCorruption {
corruption_rate: Float,
corruption_type: CorruptionType,
},
TemporalDrift {
drift_rate: Float,
drift_pattern: DriftPattern,
},
LabelNoise {
noise_rate: Float,
noise_pattern: NoisePattern,
},
MissingData {
missing_rate: Float,
missing_pattern: MissingPattern,
},
}Expand description
Worst-case scenario types
Variants§
AdversarialExamples
Adversarial examples with maximum perturbation
DistributionShift
Distribution shift scenarios
ExtremeOutliers
Extreme outliers and anomalies
ClassImbalance
Class imbalance scenarios
FeatureCorruption
Feature corruption scenarios
TemporalDrift
Temporal drift for time series
LabelNoise
Label noise scenarios
MissingData
Missing data scenarios
Trait Implementations§
Source§impl Clone for WorstCaseScenario
impl Clone for WorstCaseScenario
Source§fn clone(&self) -> WorstCaseScenario
fn clone(&self) -> WorstCaseScenario
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 moreAuto Trait Implementations§
impl Freeze for WorstCaseScenario
impl RefUnwindSafe for WorstCaseScenario
impl Send for WorstCaseScenario
impl Sync for WorstCaseScenario
impl Unpin for WorstCaseScenario
impl UnwindSafe for WorstCaseScenario
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