pub struct EarlyStoppingState {
pub best: f64,
pub bad_epochs: u64,
}Expand description
Persisted early-stopping patience criteria for exact resume.
Fields§
§best: f64Best monitored metric value observed so far (f64::INFINITY or
f64::NEG_INFINITY when no epoch has been observed yet).
bad_epochs: u64Consecutive non-improving epochs observed since the last improvement.
Trait Implementations§
Source§impl Clone for EarlyStoppingState
impl Clone for EarlyStoppingState
impl Copy for EarlyStoppingState
Source§impl Debug for EarlyStoppingState
impl Debug for EarlyStoppingState
Source§impl PartialEq for EarlyStoppingState
impl PartialEq for EarlyStoppingState
impl StructuralPartialEq for EarlyStoppingState
Auto Trait Implementations§
impl Forget for EarlyStoppingState
impl Freeze for EarlyStoppingState
impl Move for EarlyStoppingState
impl RefUnwindSafe for EarlyStoppingState
impl Send for EarlyStoppingState
impl Sync for EarlyStoppingState
impl Unpin for EarlyStoppingState
impl UnsafeUnpin for EarlyStoppingState
impl UnwindSafe for EarlyStoppingState
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