- ELUAn activation that passes positive inputs unchanged and bends negative inputs smoothly toward a floor of $-\alpha$.Lesson and interactive
- GeGLUA gated feed-forward block: one linear branch passes through GELU and multiplies a second linear branch, then a third map projects back.Lesson and interactive
- GELUAn activation that multiplies each input by the probability that a standard normal value falls below it.Lesson and interactive
- GLUA gate that splits its input into two halves and multiplies the first half by the sigmoid of the second.Lesson and interactive
- Leaky ReLUA ReLU whose negative side has a small fixed slope instead of being flat, so no unit is ever fully switched off.Lesson and interactive
- MishA smooth activation that multiplies each input by the tanh of its softplus, giving a ReLU-like curve with a small negative dip.Lesson and interactive
- PReLUA leaky ReLU whose negative slope is a trainable parameter, learned by gradient descent with the rest of the network.Lesson and interactive
- ReLUAn activation that keeps positive inputs unchanged and sets negative inputs to zero, optionally capped from above.Lesson and interactive
- SELUA scaled ELU with two fixed constants chosen so that activations drift toward mean 0 and variance 1 from layer to layer.Lesson and interactive
- SigmoidThe logistic function: it squashes any real number into the range 0 to 1, with an optional temperature that sets how sharp the curve is.Lesson and interactive
- SiLU (Swish)An activation that multiplies each input by its own sigmoid, giving a smooth ReLU-like curve with a small negative dip.Lesson and interactive
- SoftmaxA function that turns a vector of scores into positive numbers that sum to 1, so they can be read as probabilities over classes.Lesson and interactive
- SoftplusA smooth version of ReLU: it is close to zero for negative inputs, close to the input for positive ones, and always positive.Lesson and interactive
- SwiGLUA gated feed-forward block: one linear branch passes through SiLU and multiplies a second linear branch, then a third map projects back.Lesson and interactive
- TanhThe hyperbolic tangent: an S-shaped activation that squashes any input into a range centred on zero, from minus the amplitude to plus the amplitude.Lesson and interactive