From 79774e79e329f68045b96be1b518108cd7f2652d Mon Sep 17 00:00:00 2001 From: Yukti Khosla <44090430+Yukti-09@users.noreply.github.com> Date: Sat, 15 Aug 2020 22:05:09 +0530 Subject: [PATCH] Create ELU.m --- algorithms/machine_learning/Activation Functions/ELU.m | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 algorithms/machine_learning/Activation Functions/ELU.m diff --git a/algorithms/machine_learning/Activation Functions/ELU.m b/algorithms/machine_learning/Activation Functions/ELU.m new file mode 100644 index 0000000..007cc00 --- /dev/null +++ b/algorithms/machine_learning/Activation Functions/ELU.m @@ -0,0 +1,8 @@ +%ELU function +x = -10:0.01:10; +a = input('Enter the parameter'); +y = @(x) (a*(exp(x)-1)).*((x < 0)) + (x).*((x > 0)) ; +fplot(y); +xlabel('x'); +ylabel('y'); +grid on