pub struct TrainingTrajectory {
pub states: Vec<TrainingState>,
}Expand description
Training trajectory - sequence of training states.
Fields§
§states: Vec<TrainingState>Sequence of training states.
Implementations§
Source§impl TrainingTrajectory
impl TrainingTrajectory
Sourcepub fn push(&mut self, state: TrainingState)
pub fn push(&mut self, state: TrainingState)
Add a state to the trajectory.
Sourcepub fn final_state(&self) -> Option<&TrainingState>
pub fn final_state(&self) -> Option<&TrainingState>
Get the final training state.
Sourcepub fn best_val_loss(&self) -> Option<f64>
pub fn best_val_loss(&self) -> Option<f64>
Get best validation loss achieved.
Trait Implementations§
Source§impl Clone for TrainingTrajectory
impl Clone for TrainingTrajectory
Source§fn clone(&self) -> TrainingTrajectory
fn clone(&self) -> TrainingTrajectory
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 TrainingTrajectory
impl Debug for TrainingTrajectory
Source§impl Default for TrainingTrajectory
impl Default for TrainingTrajectory
Source§fn default() -> TrainingTrajectory
fn default() -> TrainingTrajectory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrainingTrajectory
impl<'de> Deserialize<'de> for TrainingTrajectory
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 TrainingTrajectory
impl RefUnwindSafe for TrainingTrajectory
impl Send for TrainingTrajectory
impl Sync for TrainingTrajectory
impl Unpin for TrainingTrajectory
impl UnsafeUnpin for TrainingTrajectory
impl UnwindSafe for TrainingTrajectory
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