ReLU
Apply the rectified linear activation, flooring negatives at zero.
Description
Apply the rectified linear activation, flooring negatives at zero.
ReLU implements a focused machine-learning calculation. Apply the rectified linear activation, flooring negatives at zero.1
When to use ReLU
Use this tool to inspect the exact scalar or vector transformation applied between neural-network layers, reproduce a hand calculation, or compare how activations treat negative, zero, and large positive inputs.
- X
- Input value.
How ReLU calculates the result
The implemented rule is: Apply the rectified linear activation, flooring negatives at zero.1
- Y
- max(0, x).
Limitations of ReLU
An activation value alone does not predict training quality. Gradient behavior, initialization, normalization, architecture, numeric precision, loss function, and the distribution of inputs all affect whether an activation is suitable. Very large magnitudes can also expose floating-point limits even when a stable formula is used.
Alternative or Complementary analyses
Plot the activation and its derivative across the expected input range, then compare validation behavior with another activation under the same initialization and training settings. Use the softmax tool only when the outputs must be normalized jointly rather than transformed independently.
References
-
Activation function — Wikipedia contributors
Similar or alternative tools
- Leaky ReLU
Apply the leaky ReLU activation, scaling negatives by a small slope.
- Sigmoid
Apply the logistic sigmoid activation.
- Softmax
Convert a list of scores into a probability distribution with the numerically stable softmax.