diff --git a/chainer/functions/activation/leaky_relu.py b/chainer/functions/activation/leaky_relu.py index 5b981bb12578..4c675be2862a 100644 --- a/chainer/functions/activation/leaky_relu.py +++ b/chainer/functions/activation/leaky_relu.py @@ -59,7 +59,12 @@ def leaky_relu(x, slope=0.2): This function is expressed as - .. math:: f(x)=\\max(x, ax), + .. math:: + + f(x) = \\left \\{ \\begin{array}{ll} + x & {\\rm if}~ x \\ge 0 \\\\ + ax & {\\rm if}~ x < 0, + \\end{array} \\right. where :math:`a` is a configurable slope value.