pub struct TrainerStats {
pub total_steps: usize,
pub cycles: usize,
pub speedup: f32,
pub full_steps: usize,
pub predict_steps: usize,
pub correct_steps: usize,
pub current_full_steps: usize,
pub current_predict_steps: usize,
pub phase_avg_losses: HashMap<TrainingPhase, f32>,
}Expand description
Training statistics.
Fields§
§total_steps: usizeTotal training steps.
cycles: usizeCycle count.
speedup: f32Speedup ratio (total steps / backward steps).
full_steps: usizeFull phase steps taken.
predict_steps: usizePredict phase steps taken.
correct_steps: usizeCorrect phase steps taken.
current_full_steps: usizeCurrent full steps per cycle.
current_predict_steps: usizeCurrent predict steps per cycle.
phase_avg_losses: HashMap<TrainingPhase, f32>Average loss per phase.
Trait Implementations§
Source§impl Clone for TrainerStats
impl Clone for TrainerStats
Source§fn clone(&self) -> TrainerStats
fn clone(&self) -> TrainerStats
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 TrainerStats
impl Debug for TrainerStats
Auto Trait Implementations§
impl Freeze for TrainerStats
impl RefUnwindSafe for TrainerStats
impl Send for TrainerStats
impl Sync for TrainerStats
impl Unpin for TrainerStats
impl UnwindSafe for TrainerStats
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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