pub enum ErrorFunc {
Linear,
Tanh,
}
Expand description
Error function used during training.
Variants§
Linear
Standard linear error function
Tanh
Tanh error function; usually better but may require a lower learning rate. This error function aggressively targets outputs that differ much from the desired, while not targeting outputs that only differ slightly. Not recommended for cascade or incremental training.
Implementations§
source§impl ErrorFunc
impl ErrorFunc
sourcepub fn from_errorfunc_enum(ef_enum: fann_errorfunc_enum) -> ErrorFunc
pub fn from_errorfunc_enum(ef_enum: fann_errorfunc_enum) -> ErrorFunc
Create an ErrorFunc
from a fann_sys::fann_errorfunc_enum
.
sourcepub fn to_errorfunc_enum(self) -> fann_errorfunc_enum
pub fn to_errorfunc_enum(self) -> fann_errorfunc_enum
Return the fann_sys::fann_errorfunc_enum
corresponding to this ErrorFunc
.
Trait Implementations§
source§impl PartialEq for ErrorFunc
impl PartialEq for ErrorFunc
impl Copy for ErrorFunc
impl Eq for ErrorFunc
impl StructuralPartialEq for ErrorFunc
Auto Trait Implementations§
impl RefUnwindSafe for ErrorFunc
impl Send for ErrorFunc
impl Sync for ErrorFunc
impl Unpin for ErrorFunc
impl UnwindSafe for ErrorFunc
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