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
fn from_errorfunc_enum(ef_enum: fann_errorfunc_enum) -> ErrorFunc
Create an ErrorFunc
from a fann_sys::fann_errorfunc_enum
.
fn to_errorfunc_enum(&self) -> fann_errorfunc_enum
Return the fann_sys::fann_errorfunc_enum
corresponding to this ErrorFunc
.