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 0e8504a + 6b8b03a commit 5a4b1c9Copy full SHA for 5a4b1c9
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