pub struct TrainingReport {
pub epochs: Vec<EpochMetrics>,
pub total_tokens: usize,
}Expand description
Accumulated training metrics.
Fields§
§epochs: Vec<EpochMetrics>§total_tokens: usizeImplementations§
Source§impl TrainingReport
impl TrainingReport
pub fn new() -> Self
pub fn record(&mut self, m: EpochMetrics)
Sourcepub fn throughput(&self) -> f32
pub fn throughput(&self) -> f32
Average throughput: tokens processed per second.
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print summary table.
Sourcepub fn export_csv(&self, path: &Path) -> Result<()>
pub fn export_csv(&self, path: &Path) -> Result<()>
Export to CSV.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrainingReport
impl RefUnwindSafe for TrainingReport
impl Send for TrainingReport
impl Sync for TrainingReport
impl Unpin for TrainingReport
impl UnsafeUnpin for TrainingReport
impl UnwindSafe for TrainingReport
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