Enum eant2::TransferFunction
[−]
[src]
pub enum TransferFunction { Linear, Threshold, Sign, Sigmoid, }
Represents which transfer function to use for evaluating neural networks.
Variants
Linear
Maps input to output directly, as if there is no transfer function.
Threshold
Outputs 1 if input is greater than 0, 0 otherwise.
Sign
Outputs 1 if input is greater than 0, 0 if input is equal to 0, -1 otherwise. Useful for simple problems and boolean logic, as it only allows three possible output values.
Sigmoid
A non-linear function. This function is the most general, so it should be defaulted to.
Trait Implementations
impl PartialEq<TransferFunction> for TransferFunction
fn eq(&self, __arg_0: &TransferFunction) -> bool
impl Eq for TransferFunction
impl Clone for TransferFunction
fn clone(&self) -> TransferFunction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more