pub struct RobustnessStats {
pub total_gradients: usize,
pub clipped_gradients: usize,
pub outliers_detected: usize,
pub avg_gradient_norm: f32,
pub max_gradient_norm: f32,
pub gradient_variance: f32,
pub stability_score: f32,
}Expand description
Statistics for robustness monitoring
Fields§
§total_gradients: usizeNumber of gradients processed
clipped_gradients: usizeNumber of gradients clipped
outliers_detected: usizeNumber of outliers detected
avg_gradient_norm: f32Average gradient norm
max_gradient_norm: f32Maximum gradient norm observed
gradient_variance: f32Gradient variance over time
stability_score: f32Stability score (0-1, higher is more stable)
Implementations§
Source§impl RobustnessStats
impl RobustnessStats
pub fn new() -> Self
pub fn clipping_rate(&self) -> f32
pub fn outlier_rate(&self) -> f32
Trait Implementations§
Source§impl Clone for RobustnessStats
impl Clone for RobustnessStats
Source§fn clone(&self) -> RobustnessStats
fn clone(&self) -> RobustnessStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RobustnessStats
impl Debug for RobustnessStats
Source§impl<'de> Deserialize<'de> for RobustnessStats
impl<'de> Deserialize<'de> for RobustnessStats
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 RobustnessStats
impl RefUnwindSafe for RobustnessStats
impl Send for RobustnessStats
impl Sync for RobustnessStats
impl Unpin for RobustnessStats
impl UnsafeUnpin for RobustnessStats
impl UnwindSafe for RobustnessStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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