pub struct CheckpointMetrics {
pub step: u32,
pub train_loss: f64,
pub train_mean_token_accuracy: f64,
pub valid_loss: Option<f64>,
pub valid_mean_token_accuracy: Option<f64>,
pub full_valid_loss: Option<f64>,
pub full_valid_mean_token_accuracy: Option<f64>,
}Expand description
Metrics for a fine-tuning checkpoint.
Fields§
§step: u32The training step number.
train_loss: f64The training loss at this checkpoint.
train_mean_token_accuracy: f64The mean token accuracy during training.
valid_loss: Option<f64>The validation loss at this checkpoint.
valid_mean_token_accuracy: Option<f64>The mean token accuracy during validation.
full_valid_loss: Option<f64>The full validation loss.
full_valid_mean_token_accuracy: Option<f64>The full validation mean token accuracy.
Trait Implementations§
Source§impl Clone for CheckpointMetrics
impl Clone for CheckpointMetrics
Source§fn clone(&self) -> CheckpointMetrics
fn clone(&self) -> CheckpointMetrics
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 CheckpointMetrics
impl Debug for CheckpointMetrics
Source§impl<'de> Deserialize<'de> for CheckpointMetrics
impl<'de> Deserialize<'de> for CheckpointMetrics
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 CheckpointMetrics
impl RefUnwindSafe for CheckpointMetrics
impl Send for CheckpointMetrics
impl Sync for CheckpointMetrics
impl Unpin for CheckpointMetrics
impl UnwindSafe for CheckpointMetrics
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