Enum fann_sys::fann_activationfunc_enum
[−]
[src]
pub enum fann_activationfunc_enum {
FANN_NONE,
FANN_LINEAR,
FANN_THRESHOLD,
FANN_THRESHOLD_SYMMETRIC,
FANN_SIGMOID,
FANN_SIGMOID_STEPWISE,
FANN_SIGMOID_SYMMETRIC,
FANN_SIGMOID_SYMMETRIC_STEPWISE,
FANN_GAUSSIAN,
FANN_GAUSSIAN_SYMMETRIC,
FANN_GAUSSIAN_STEPWISE,
FANN_ELLIOTT,
FANN_ELLIOTT_SYMMETRIC,
FANN_LINEAR_PIECE,
FANN_LINEAR_PIECE_SYMMETRIC,
FANN_SIN_SYMMETRIC,
FANN_COS_SYMMETRIC,
FANN_SIN,
FANN_COS,
}The activation functions used for the neurons during training. The activation functions
can either be defined for a group of neurons by fann_set_activation_function_hidden and
fann_set_activation_function_output, or it can be defined for a single neuron by
fann_set_activation_function.
The steepness of an activation function is defined in the same way by
fann_set_activation_steepness_hidden, fann_set_activation_steepness_output and
fann_set_activation_steepness.
The functions are described with functions where:
x is the input to the activation function,
y is the output,
s is the steepness and
d is the derivation.
Variants
FANN_NONE | Neuron does not exist or does not have an activation function. |
FANN_LINEAR | Linear activation function.
|
FANN_THRESHOLD | Threshold activation function.
|
FANN_THRESHOLD_SYMMETRIC | Threshold activation function.
|
FANN_SIGMOID | Sigmoid activation function.
|
FANN_SIGMOID_STEPWISE | Stepwise linear approximation to sigmoid.
|
FANN_SIGMOID_SYMMETRIC | Symmetric sigmoid activation function, aka. tanh.
|
FANN_SIGMOID_SYMMETRIC_STEPWISE | Stepwise linear approximation to symmetric sigmoid.
|
FANN_GAUSSIAN | Gaussian activation function.
|
FANN_GAUSSIAN_SYMMETRIC | Symmetric gaussian activation function.
|
FANN_GAUSSIAN_STEPWISE | Stepwise linear approximation to gaussian. Faster than gaussian but a bit less precise. NOT implemented yet. |
FANN_ELLIOTT | Fast (sigmoid like) activation function defined by David Elliott
|
FANN_ELLIOTT_SYMMETRIC | Fast (symmetric sigmoid like) activation function defined by David Elliott
|
FANN_LINEAR_PIECE | Bounded linear activation function.
|
FANN_LINEAR_PIECE_SYMMETRIC | Bounded linear activation function.
|
FANN_SIN_SYMMETRIC | Periodical sine activation function.
|
FANN_COS_SYMMETRIC | Periodical cosine activation function.
|
FANN_SIN | Periodical sine activation function.
|
FANN_COS | Periodical cosine activation function.
|