pub enum LearnerEvent<T> {
Start {
total_epochs: usize,
starting_epoch: usize,
label: Option<String>,
},
ProcessedItem(TrainingItem<T>),
StartSplit {
epoch_number: usize,
total_items: usize,
},
EndSplit(usize),
EndEpoch(usize),
End(Option<LearnerSummary>),
}Expand description
Event happening during the training/validation process.
Variants§
Start
Signal the start of the process (e.g., training start).
Fields
ProcessedItem(TrainingItem<T>)
Signal that an item have been processed.
StartSplit
Signal the start of a split.
Fields
EndSplit(usize)
Signal the end of a split, carrying the current epoch number.
EndEpoch(usize)
Signal the end of a full epoch.
End(Option<LearnerSummary>)
Signal the end of the process (e.g., training end).
Auto Trait Implementations§
impl<T> Freeze for LearnerEvent<T>where
TrainingItem<T>: Freeze,
impl<T> RefUnwindSafe for LearnerEvent<T>where
TrainingItem<T>: RefUnwindSafe,
impl<T> Send for LearnerEvent<T>where
TrainingItem<T>: Send,
impl<T> Sync for LearnerEvent<T>where
TrainingItem<T>: Sync,
impl<T> Unpin for LearnerEvent<T>where
TrainingItem<T>: Unpin,
impl<T> UnsafeUnpin for LearnerEvent<T>where
TrainingItem<T>: UnsafeUnpin,
impl<T> UnwindSafe for LearnerEvent<T>where
TrainingItem<T>: UnwindSafe,
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