pub struct TrainingMetrics {
pub epoch: usize,
pub train_loss: f32,
pub val_loss: f32,
pub train_accuracy: f32,
pub val_accuracy: f32,
pub learning_rate: f32,
}Expand description
Training metrics
Fields§
§epoch: usizeEpoch number
train_loss: f32Training loss
val_loss: f32Validation loss
train_accuracy: f32Training accuracy
val_accuracy: f32Validation accuracy
learning_rate: f32Learning rate
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 moreSource§impl Debug for TrainingMetrics
impl Debug for TrainingMetrics
Source§impl<'de> Deserialize<'de> for TrainingMetrics
impl<'de> Deserialize<'de> for TrainingMetrics
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 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