Machine Learning & AI
Basic

Leaky ReLU

A ReLU variant that lets a small gradient flow for negative inputs.

Formula

f(x)=max(αx,x)f(x) = \max(\alpha x, x)

Variables

xInput
\alphaSmall slope (e.g. 0.01)

Example

alpha=0.01, x=-2: f=-0.02

Did You Know?

Leaky ReLU fixes the "dying ReLU" problem where neurons get stuck outputting zero.

Share this formula