We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a4b1c9 + 6ccd77b commit 8fe5fabCopy full SHA for 8fe5fab
algorithms/machine_learning/Activation Functions/ReLU6.m
@@ -0,0 +1,9 @@
1
+%ReLU6 function
2
+x = -10:0.01:10;
3
+y = x;
4
+y(x<0) = 0;
5
+y(x>=6) = 6;
6
+plot(x,y);
7
+xlabel('x');
8
+ylabel('y');
9
+grid on
0 commit comments