pub enum TrainingAnomaly {
NaN {
location: String,
},
ModelCorruption {
description: String,
},
LossSpike {
current: f64,
expected: f64,
z_score: f64,
},
GradientExplosion {
norm: f64,
threshold: f64,
},
GradientVanishing {
norm: f64,
threshold: f64,
},
SlowConvergence {
recent_losses: Vec<f64>,
expected_rate: f64,
},
HighVariance {
variance: f64,
threshold: f64,
},
}Expand description
Training anomaly types for ML simulation.
Variants§
NaN
NaN detected in parameters or loss.
ModelCorruption
Model corruption detected.
LossSpike
Loss spike detected.
Fields
GradientExplosion
Gradient explosion detected.
GradientVanishing
Gradient vanishing detected.
SlowConvergence
Slow convergence detected.
HighVariance
High variance in loss.
Trait Implementations§
Source§impl Clone for TrainingAnomaly
impl Clone for TrainingAnomaly
Source§fn clone(&self) -> TrainingAnomaly
fn clone(&self) -> TrainingAnomaly
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 TrainingAnomaly
impl Debug for TrainingAnomaly
Source§impl<'de> Deserialize<'de> for TrainingAnomaly
impl<'de> Deserialize<'de> for TrainingAnomaly
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
Auto Trait Implementations§
impl Freeze for TrainingAnomaly
impl RefUnwindSafe for TrainingAnomaly
impl Send for TrainingAnomaly
impl Sync for TrainingAnomaly
impl Unpin for TrainingAnomaly
impl UnsafeUnpin for TrainingAnomaly
impl UnwindSafe for TrainingAnomaly
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