pub enum HaltCondition {
Epochs(u32),
MSE(f64),
Timer(Duration),
}
Expand description
Specifies when to stop training the network
Variants§
Epochs(u32)
Stop training after a certain number of epochs
MSE(f64)
Train until a certain error rate is achieved
Timer(Duration)
Train for some fixed amount of time and then halt
Trait Implementations§
Source§impl Clone for HaltCondition
impl Clone for HaltCondition
Source§fn clone(&self) -> HaltCondition
fn clone(&self) -> HaltCondition
Returns a copy 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 HaltCondition
impl Debug for HaltCondition
impl Copy for HaltCondition
Auto Trait Implementations§
impl Freeze for HaltCondition
impl RefUnwindSafe for HaltCondition
impl Send for HaltCondition
impl Sync for HaltCondition
impl Unpin for HaltCondition
impl UnwindSafe for HaltCondition
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)