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.
1 parent 6553041 commit 6ccd77bCopy full SHA for 6ccd77b
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