pub struct TrainingMetrics {
pub epoch: usize,
pub train_loss: f64,
pub validation_loss: Option<f64>,
pub time_elapsed: f64,
pub learning_rate: f64,
}
Expand description
Training metrics tracked during training
Fields§
§epoch: usize
§train_loss: f64
§validation_loss: Option<f64>
§time_elapsed: f64
§learning_rate: f64
Trait Implementations§
Source§impl Clone for TrainingMetrics
impl Clone for TrainingMetrics
Source§fn clone(&self) -> TrainingMetrics
fn clone(&self) -> TrainingMetrics
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 TrainingMetrics
impl RefUnwindSafe for TrainingMetrics
impl Send for TrainingMetrics
impl Sync for TrainingMetrics
impl Unpin for TrainingMetrics
impl UnwindSafe for TrainingMetrics
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