Skip to content

Commit e987cb6

Browse files
authored
Create LeakyReLU.m
1 parent 6553041 commit e987cb6

File tree

1 file changed

+7
-0
lines changed
  • algorithms/machine_learning/Activation Functions

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
%Leaky ReLU function
2+
x = -10:0.01:10;
3+
y = @(x) (x).*((x > 0)) + (0.01 * x).*((x < 0)) ;
4+
fplot(y);
5+
xlabel('x');
6+
ylabel('y');
7+
grid on

0 commit comments

Comments
 (0)