pub struct EarlyStoppingState<T: Float> {
pub enabled: bool,
pub patience: u32,
pub patience_counter: u32,
pub min_improvement: T,
pub best_score_for_stopping: Option<T>,
}Expand description
Early stopping state
Fields§
§enabled: boolWhether early stopping is enabled
patience: u32Patience (iterations without improvement)
patience_counter: u32Current patience counter
min_improvement: TMinimum improvement threshold
best_score_for_stopping: Option<T>Best score for early stopping comparison
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for EarlyStoppingState<T>
impl<T> RefUnwindSafe for EarlyStoppingState<T>
impl<T> Send for EarlyStoppingState<T>
impl<T> Sync for EarlyStoppingState<T>
impl<T> Unpin for EarlyStoppingState<T>
impl<T> UnsafeUnpin for EarlyStoppingState<T>
impl<T> UnwindSafe for EarlyStoppingState<T>
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> 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