pub struct EarlyStopping {
pub patience: usize,
pub min_delta: f64,
pub monitor: String,
pub restore_best_weights: bool,
}Expand description
Early stopping configuration
Fields§
§patience: usizePatience (epochs)
min_delta: f64Minimum delta for improvement
monitor: StringMetric to monitor
restore_best_weights: boolRestore best weights
Trait Implementations§
Source§impl Clone for EarlyStopping
impl Clone for EarlyStopping
Source§fn clone(&self) -> EarlyStopping
fn clone(&self) -> EarlyStopping
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 moreAuto Trait Implementations§
impl Freeze for EarlyStopping
impl RefUnwindSafe for EarlyStopping
impl Send for EarlyStopping
impl Sync for EarlyStopping
impl Unpin for EarlyStopping
impl UnwindSafe for EarlyStopping
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