Enum nn::HaltCondition [-] [+] [src]

pub enum HaltCondition {
    Epochs(u32),
    MSE(f64),
    Timer(Duration),
}

Specifies when to stop training the network

Variants

Epochs

Stop training after a certain number of epochs

MSE

Train until a certain error rate is achieved

Timer

Train for some fixed amount of time and then halt

Trait Implementations

Derived Implementations

impl Clone for HaltCondition

fn clone(&self) -> HaltCondition

fn clone_from(&mut self, source: &Self)

impl Copy for HaltCondition

impl Debug for HaltCondition

fn fmt(&self, __arg_0: &mut Formatter) -> Result