pub struct MonitorConfig {
pub window_size: usize,
pub grad_norm_threshold: f32,
pub loss_divergence_factor: f32,
pub dead_neuron_threshold: usize,
pub nan_check: bool,
pub convergence_threshold: f32,
pub max_history: usize,
}Expand description
Configuration for the training monitor.
Fields§
§window_size: usizeRolling window size for statistics (default 100).
grad_norm_threshold: f32Alert if gradient norm exceeds this value (default 100.0).
loss_divergence_factor: f32Alert if loss exceeds factor * moving average (default 10.0).
dead_neuron_threshold: usizeSteps with zero gradient before alerting on dead neurons (default 50).
nan_check: boolWhether to check for NaN/Inf values (default true).
convergence_threshold: f32Loss change below this threshold indicates convergence (default 1e-6).
max_history: usizeMaximum history entries to retain in memory (default 1000).
Trait Implementations§
Source§impl Clone for MonitorConfig
impl Clone for MonitorConfig
Source§fn clone(&self) -> MonitorConfig
fn clone(&self) -> MonitorConfig
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 MonitorConfig
impl Debug for MonitorConfig
Auto Trait Implementations§
impl Freeze for MonitorConfig
impl RefUnwindSafe for MonitorConfig
impl Send for MonitorConfig
impl Sync for MonitorConfig
impl Unpin for MonitorConfig
impl UnsafeUnpin for MonitorConfig
impl UnwindSafe for MonitorConfig
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