pub struct ProgressLogger { /* private fields */ }Expand description
Simple progress logging callback.
Implementations§
Trait Implementations§
Source§impl Callback for ProgressLogger
impl Callback for ProgressLogger
Source§fn on_epoch_begin(&mut self, epoch: usize, _state: &TrainingState)
fn on_epoch_begin(&mut self, epoch: usize, _state: &TrainingState)
Called at the start of an epoch.
Source§fn on_step_end(
&mut self,
step: usize,
metrics: &TrainingMetrics,
_state: &TrainingState,
)
fn on_step_end( &mut self, step: usize, metrics: &TrainingMetrics, _state: &TrainingState, )
Called after each training step.
Source§fn on_epoch_end(&mut self, epoch: usize, state: &TrainingState) -> bool
fn on_epoch_end(&mut self, epoch: usize, state: &TrainingState) -> bool
Called at the end of an epoch.
Source§fn on_train_begin(&mut self, _state: &TrainingState)
fn on_train_begin(&mut self, _state: &TrainingState)
Called at the start of training.
Source§fn on_train_end(&mut self, _state: &TrainingState)
fn on_train_end(&mut self, _state: &TrainingState)
Called at the end of training.
Source§fn on_validation_end(
&mut self,
_metrics: &TrainingMetrics,
_state: &TrainingState,
)
fn on_validation_end( &mut self, _metrics: &TrainingMetrics, _state: &TrainingState, )
Called after validation.
Auto Trait Implementations§
impl Freeze for ProgressLogger
impl RefUnwindSafe for ProgressLogger
impl Send for ProgressLogger
impl Sync for ProgressLogger
impl Unpin for ProgressLogger
impl UnsafeUnpin for ProgressLogger
impl UnwindSafe for ProgressLogger
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> 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