Enum fann::ErrorFunc [−][src]
pub enum ErrorFunc { Linear, Tanh, }
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.
Methods
impl ErrorFunc
[src]
impl ErrorFunc
pub fn from_errorfunc_enum(ef_enum: fann_errorfunc_enum) -> ErrorFunc
[src]
pub fn from_errorfunc_enum(ef_enum: fann_errorfunc_enum) -> ErrorFunc
Create an ErrorFunc
from a fann_sys::fann_errorfunc_enum
.
pub fn to_errorfunc_enum(self) -> fann_errorfunc_enum
[src]
pub fn to_errorfunc_enum(self) -> fann_errorfunc_enum
Return the fann_sys::fann_errorfunc_enum
corresponding to this ErrorFunc
.
Trait Implementations
impl Copy for ErrorFunc
[src]
impl Copy for ErrorFunc
impl Clone for ErrorFunc
[src]
impl Clone for ErrorFunc
fn clone(&self) -> ErrorFunc
[src]
fn clone(&self) -> ErrorFunc
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ErrorFunc
[src]
impl Debug for ErrorFunc
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ErrorFunc
[src]
impl Eq for ErrorFunc
impl PartialEq for ErrorFunc
[src]
impl PartialEq for ErrorFunc