From 681425f4f7bd188a25defae0f95a9a45417a832d Mon Sep 17 00:00:00 2001 From: niboshi Date: Fri, 18 Aug 2017 16:40:23 +0900 Subject: [PATCH] Fix leaky_relu document --- chainer/functions/activation/leaky_relu.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.