pub struct TrainingMetrics {
pub epoch: usize,
pub steps: usize,
pub learning_rate: f64,
pub loss: f64,
pub loss_avg: f64,
pub gradient_norm: f64,
pub steps_per_second: f64,
pub memory_usage: usize,
pub convergence_rate: f64,
pub positive_accuracy: f64,
pub negative_accuracy: f64,
}Expand description
Enhanced training metrics and monitoring
Fields§
§epoch: usizeCurrent epoch
steps: usizeTotal training steps
learning_rate: f64Current learning rate
loss: f64Training loss (negative log likelihood)
loss_avg: f64Loss moving average
gradient_norm: f64Gradient norm
steps_per_second: f64Processing speed (steps per second)
memory_usage: usizeMemory usage in bytes
convergence_rate: f64Convergence indicator (rate of loss change)
positive_accuracy: f64Training accuracy on positive samples
negative_accuracy: f64Training accuracy on negative samples
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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