pub enum StopFunc {
Mse,
Bit,
}
Expand description
Stop critieria for training.
Variants§
Mse
The mean square error of the whole output.
Bit
The number of training data points where the output neuron’s error was greater than the bit fail limit. Every neuron is counted for every training data sample where it fails.
Implementations§
source§impl StopFunc
impl StopFunc
sourcepub fn from_stopfunc_enum(sf_enum: fann_stopfunc_enum) -> StopFunc
pub fn from_stopfunc_enum(sf_enum: fann_stopfunc_enum) -> StopFunc
Create a StopFunc
from a fann_sys::fann_stopfunc_enum
.
sourcepub fn to_stopfunc_enum(self) -> fann_stopfunc_enum
pub fn to_stopfunc_enum(self) -> fann_stopfunc_enum
Return the fann_sys::fann_stopfunc_enum
corresponding to this StopFunc
.
Trait Implementations§
source§impl PartialEq for StopFunc
impl PartialEq for StopFunc
impl Copy for StopFunc
impl Eq for StopFunc
impl StructuralPartialEq for StopFunc
Auto Trait Implementations§
impl RefUnwindSafe for StopFunc
impl Send for StopFunc
impl Sync for StopFunc
impl Unpin for StopFunc
impl UnwindSafe for StopFunc
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