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 6b8b03aCopy full SHA for 6b8b03a
algorithms/machine_learning/Parametric_ReLU.m
@@ -0,0 +1,8 @@
1
+%Parametric ReLU function
2
+x = -10:0.01:10;
3
+a = input('Enter the value of the slope')
4
+y = @(x) (x).*((x > 0)) + (a*x).*((x < 0)) ;
5
+fplot(y);
6
+xlabel('x');
7
+ylabel('y');
8
+grid on
0 commit comments