pub struct IterationState {
pub iteration: usize,
pub train_loss: f64,
pub validation_loss: Option<f64>,
pub n_trees: usize,
pub n_leaves: usize,
}Expand description
State of the boosting process at a specific training iteration.
Captures performance metrics and model statistics for monitoring training progress and implementing early stopping.
Fields§
§iteration: usizeCurrent iteration number (0-indexed).
train_loss: f64Training loss at this iteration.
validation_loss: Option<f64>Validation loss if validation data is provided.
n_trees: usizeNumber of trees in the ensemble after this iteration.
n_leaves: usizeNumber of leaves in the tree added this iteration.
Trait Implementations§
Source§impl Clone for IterationState
impl Clone for IterationState
Source§fn clone(&self) -> IterationState
fn clone(&self) -> IterationState
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 moreSource§impl Debug for IterationState
impl Debug for IterationState
Source§impl<'de> Deserialize<'de> for IterationState
impl<'de> Deserialize<'de> for IterationState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IterationState
impl RefUnwindSafe for IterationState
impl Send for IterationState
impl Sync for IterationState
impl Unpin for IterationState
impl UnwindSafe for IterationState
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