From e987cb607ee39ef9102045480c9d6366f25fc535 Mon Sep 17 00:00:00 2001 From: Yukti Khosla <44090430+Yukti-09@users.noreply.github.com> Date: Tue, 18 Aug 2020 09:24:42 +0530 Subject: [PATCH] Create LeakyReLU.m --- .../machine_learning/Activation Functions/LeakyReLU.m | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 algorithms/machine_learning/Activation Functions/LeakyReLU.m diff --git a/algorithms/machine_learning/Activation Functions/LeakyReLU.m b/algorithms/machine_learning/Activation Functions/LeakyReLU.m new file mode 100644 index 0000000..a1acd50 --- /dev/null +++ b/algorithms/machine_learning/Activation Functions/LeakyReLU.m @@ -0,0 +1,7 @@ +%Leaky ReLU function +x = -10:0.01:10; +y = @(x) (x).*((x > 0)) + (0.01 * x).*((x < 0)) ; +fplot(y); +xlabel('x'); +ylabel('y'); +grid on