Module cgl_rs::math::activations
source · Expand description
Some popular activation functions and their derivatives.
Functions
- Calculates the ReLU activation function for a given input.
- Calculates the derivative of the ReLU activation function for a given input.
- Calculates the leaky ReLU activation function for a given input.
- Calculates the derivative of the leaky ReLU activation function for a given input.
- Calculates the smooth ReLU activation function for a given input.
- Calculates the derivative of the smooth ReLU activation function for a given input.
- Calculates the sigmoid activation function for a given input.
- Calculates the derivative of the sigmoid activation function for a given input.
- Calculates the step activation function for a given input.
- Calculates the derivative of the step activation function for a given input.
- Calculates the hyperbolic tangent activation function for a given input.
- Calculates the derivative of the hyperbolic tangent activation function for a given input.