Enum cge::transfer::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 for TransferFunction
[src]

fn eq(&self, __arg_0: &TransferFunction) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Eq for TransferFunction
[src]

impl Clone for TransferFunction
[src]

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

impl Debug for TransferFunction
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.