ELU activation versus ReLU
The shape of the ELU activation used in Asimov's actor and critic, how α sets its negative saturation, and how its gradient differs from ReLU's.
Loading simulation…
What it demonstrates
The shape of the ELU activation used in Asimov's actor and critic, how α sets its negative saturation, and how its gradient differs from ReLU's.
How it works
Both functions and (optionally) their derivatives are plotted analytically. The probe reads off values at one input.
Adjustable parameters
- α (0.1–2)
- Probe input x (−4 to 3)
- Show ReLU
- Show derivatives
Known limitations
- Menlo documents that ELU is used; the α value is not stated on the reviewed pages (PyTorch's default is 1.0).
Equations
Core update rule
const elu = (x: number, a = 1) => (x > 0 ? x : a * Math.expm1(x));Explained in Chapter 8: Locomotion Policy