Skip to content

Commit a720931

Browse files
authored
Merge pull request #33 from Yukti-09/patch-1
Create ELU.m
2 parents c51e83b + 79774e7 commit a720931

File tree

1 file changed

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

1 file changed

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

0 commit comments

Comments
 (0)