pub struct EarlyStoppingConfig {
pub patience: usize,
pub min_delta: f64,
pub restore_best_weights: bool,
pub monitor: EarlyStoppingMetric,
}
Expand description
Configuration for early stopping
Fields§
§patience: usize
Number of epochs with no improvement after which training will be stopped
min_delta: f64
Minimum change in the monitored quantity to qualify as an improvement
restore_best_weights: bool
Whether to restore the best weights when early stopping triggers
monitor: EarlyStoppingMetric
Metric to monitor for early stopping (‘val_loss’ or ‘train_loss’)
Trait Implementations§
Source§impl Clone for EarlyStoppingConfig
impl Clone for EarlyStoppingConfig
Source§fn clone(&self) -> EarlyStoppingConfig
fn clone(&self) -> EarlyStoppingConfig
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 EarlyStoppingConfig
impl Debug for EarlyStoppingConfig
Auto Trait Implementations§
impl Freeze for EarlyStoppingConfig
impl RefUnwindSafe for EarlyStoppingConfig
impl Send for EarlyStoppingConfig
impl Sync for EarlyStoppingConfig
impl Unpin for EarlyStoppingConfig
impl UnwindSafe for EarlyStoppingConfig
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