pub enum AnomalyDetectionDifficulty {
Trivial,
Easy,
Moderate,
Hard,
Expert,
}Expand description
Detection difficulty classification for anomalies.
Categorizes how difficult an anomaly is to detect, which is useful for ML model benchmarking and audit procedure selection.
Note: This is distinct from drift_events::AnomalyDetectionDifficulty which
is used for drift event classification and has different variants.
Variants§
Trivial
Obvious anomaly, easily caught by basic rules (expected detection rate: 99%).
Easy
Relatively easy to detect with standard procedures (expected detection rate: 90%).
Moderate
Requires moderate effort or specialized analysis (expected detection rate: 70%).
Hard
Difficult to detect, requires advanced techniques (expected detection rate: 40%).
Expert
Expert-level difficulty, requires forensic analysis (expected detection rate: 15%).
Implementations§
Source§impl AnomalyDetectionDifficulty
impl AnomalyDetectionDifficulty
Sourcepub fn expected_detection_rate(&self) -> f64
pub fn expected_detection_rate(&self) -> f64
Returns the expected detection rate for this difficulty level.
Sourcepub fn difficulty_score(&self) -> f64
pub fn difficulty_score(&self) -> f64
Returns a numeric difficulty score (0.0-1.0).
Sourcepub fn from_score(score: f64) -> Self
pub fn from_score(score: f64) -> Self
Creates a difficulty level from a score (0.0-1.0).
Trait Implementations§
Source§impl Clone for AnomalyDetectionDifficulty
impl Clone for AnomalyDetectionDifficulty
Source§fn clone(&self) -> AnomalyDetectionDifficulty
fn clone(&self) -> AnomalyDetectionDifficulty
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnomalyDetectionDifficulty
impl Debug for AnomalyDetectionDifficulty
Source§impl Default for AnomalyDetectionDifficulty
impl Default for AnomalyDetectionDifficulty
Source§fn default() -> AnomalyDetectionDifficulty
fn default() -> AnomalyDetectionDifficulty
Source§impl<'de> Deserialize<'de> for AnomalyDetectionDifficulty
impl<'de> Deserialize<'de> for AnomalyDetectionDifficulty
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>,
Source§impl Hash for AnomalyDetectionDifficulty
impl Hash for AnomalyDetectionDifficulty
impl Copy for AnomalyDetectionDifficulty
impl Eq for AnomalyDetectionDifficulty
impl StructuralPartialEq for AnomalyDetectionDifficulty
Auto Trait Implementations§
impl Freeze for AnomalyDetectionDifficulty
impl RefUnwindSafe for AnomalyDetectionDifficulty
impl Send for AnomalyDetectionDifficulty
impl Sync for AnomalyDetectionDifficulty
impl Unpin for AnomalyDetectionDifficulty
impl UnwindSafe for AnomalyDetectionDifficulty
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.