pub struct AnomalyDetector { /* private fields */ }Expand description
Anomaly detector for Jidoka-style training quality gates.
Implementations§
Source§impl AnomalyDetector
impl AnomalyDetector
Sourcepub fn with_gradient_explosion_threshold(self, threshold: f64) -> Self
pub fn with_gradient_explosion_threshold(self, threshold: f64) -> Self
Set gradient explosion threshold.
Sourcepub fn with_gradient_vanishing_threshold(self, threshold: f64) -> Self
pub fn with_gradient_vanishing_threshold(self, threshold: f64) -> Self
Set gradient vanishing threshold.
Sourcepub fn with_warmup(self, count: u64) -> Self
pub fn with_warmup(self, count: u64) -> Self
Set warmup count before anomaly detection activates.
Sourcepub fn check(
&mut self,
loss: f64,
gradient_norm: f64,
) -> Option<TrainingAnomaly>
pub fn check( &mut self, loss: f64, gradient_norm: f64, ) -> Option<TrainingAnomaly>
Check for training anomalies given loss and gradient norm.
Sourcepub fn anomaly_count(&self) -> u64
pub fn anomaly_count(&self) -> u64
Get number of anomalies detected.
Trait Implementations§
Source§impl Clone for AnomalyDetector
impl Clone for AnomalyDetector
Source§fn clone(&self) -> AnomalyDetector
fn clone(&self) -> AnomalyDetector
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 AnomalyDetector
impl RefUnwindSafe for AnomalyDetector
impl Send for AnomalyDetector
impl Sync for AnomalyDetector
impl Unpin for AnomalyDetector
impl UnsafeUnpin for AnomalyDetector
impl UnwindSafe for AnomalyDetector
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