pub struct MetricsLogger { /* private fields */ }Expand description
Logs training metrics to a CSV file and prints a summary line to stdout.
Creates a CSV file at the specified path with columns:
epoch,train_loss,val_loss,learning_rate,duration_ms
On each on_epoch_end, appends a row with the current metrics and prints a
formatted summary to stdout.
Implementations§
Trait Implementations§
Source§impl TrainingCallback for MetricsLogger
impl TrainingCallback for MetricsLogger
Auto Trait Implementations§
impl Freeze for MetricsLogger
impl RefUnwindSafe for MetricsLogger
impl Send for MetricsLogger
impl Sync for MetricsLogger
impl Unpin for MetricsLogger
impl UnsafeUnpin for MetricsLogger
impl UnwindSafe for MetricsLogger
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