pub enum TrainEvent {
Epoch(TrainingState),
Anomaly(String),
Checkpoint {
epoch: u64,
},
EarlyStopping {
best_epoch: u64,
best_val_loss: f64,
},
}Expand description
Simulated training event for journaling.
Variants§
Epoch(TrainingState)
Epoch completed.
Anomaly(String)
Anomaly detected.
Checkpoint
Checkpoint created.
EarlyStopping
Early stopping triggered.
Trait Implementations§
Source§impl Clone for TrainEvent
impl Clone for TrainEvent
Source§fn clone(&self) -> TrainEvent
fn clone(&self) -> TrainEvent
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 TrainEvent
impl Debug for TrainEvent
Source§impl<'de> Deserialize<'de> for TrainEvent
impl<'de> Deserialize<'de> for TrainEvent
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 TrainEvent
impl RefUnwindSafe for TrainEvent
impl Send for TrainEvent
impl Sync for TrainEvent
impl Unpin for TrainEvent
impl UnsafeUnpin for TrainEvent
impl UnwindSafe for TrainEvent
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