pub struct ValidationInfo {
pub validation_scores: Vec<Float>,
pub best_score: Option<Float>,
pub best_iteration: usize,
pub stopped_early: bool,
pub converged: bool,
}Expand description
Information about the validation process during early stopping
Fields§
§validation_scores: Vec<Float>Validation scores for each iteration
best_score: Option<Float>Best validation score achieved
best_iteration: usizeIteration where best score was achieved
stopped_early: boolWhether training was stopped early
converged: boolWhether convergence was achieved
Trait Implementations§
Source§impl Clone for ValidationInfo
impl Clone for ValidationInfo
Source§fn clone(&self) -> ValidationInfo
fn clone(&self) -> ValidationInfo
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 ValidationInfo
impl RefUnwindSafe for ValidationInfo
impl Send for ValidationInfo
impl Sync for ValidationInfo
impl Unpin for ValidationInfo
impl UnwindSafe for ValidationInfo
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