pub struct Patience {
pub steps: NonZeroUsize,
pub min_delta: f64,
pub goal: Goal,
}Expand description
Prune what has stopped improving on its own best. Early stopping, and the third thing a verdict can be measured against: the others, a constant, itself. Unlike both of the others it can prune a run that is doing perfectly well in the field and simply is not going anywhere.
Fields§
§steps: NonZeroUsizeHow many reports without an improvement before it goes.
Non-zero because zero patience would prune every trial at its first report, improvement or not. Made impossible rather than validated.
min_delta: f64How much counts as an improvement. 0.0 means any at all, which makes
noise look like progress.
goal: GoalWhich way is better.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Patience
Auto Trait Implementations§
impl Freeze for Patience
impl RefUnwindSafe for Patience
impl Send for Patience
impl Sync for Patience
impl Unpin for Patience
impl UnsafeUnpin for Patience
impl UnwindSafe for Patience
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