From b4cadaf054048762f21a40bd0760c12f9d741610 Mon Sep 17 00:00:00 2001 From: Yukti Khosla <44090430+Yukti-09@users.noreply.github.com> Date: Mon, 17 Aug 2020 10:13:54 +0530 Subject: [PATCH 1/2] Create ReLU.m --- algorithms/machine_learning/Activation Functions/ReLU.m | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 algorithms/machine_learning/Activation Functions/ReLU.m diff --git a/algorithms/machine_learning/Activation Functions/ReLU.m b/algorithms/machine_learning/Activation Functions/ReLU.m new file mode 100644 index 0000000..307779a --- /dev/null +++ b/algorithms/machine_learning/Activation Functions/ReLU.m @@ -0,0 +1,9 @@ +%ReLU function +x = -10:0.01:10; +y = x; +y(x<0) = 0; +plot(x,y); +xlabel('x'); +ylabel('y'); +grid on +© 2020 GitHub, Inc. From dd921045082584292d6da72d8b1a9f84d3a41b92 Mon Sep 17 00:00:00 2001 From: Yukti Khosla <44090430+Yukti-09@users.noreply.github.com> Date: Mon, 17 Aug 2020 11:26:27 +0530 Subject: [PATCH 2/2] Update ReLU.m --- algorithms/machine_learning/Activation Functions/ReLU.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/algorithms/machine_learning/Activation Functions/ReLU.m b/algorithms/machine_learning/Activation Functions/ReLU.m index 307779a..b1e034e 100644 --- a/algorithms/machine_learning/Activation Functions/ReLU.m +++ b/algorithms/machine_learning/Activation Functions/ReLU.m @@ -1,4 +1,6 @@ + %ReLU function + x = -10:0.01:10; y = x; y(x<0) = 0; @@ -6,4 +8,4 @@ xlabel('x'); ylabel('y'); grid on -© 2020 GitHub, Inc. +