Skip to content

Commit b4cadaf

Browse files
authored
Create ReLU.m
1 parent cd85de1 commit b4cadaf

File tree

1 file changed

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

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
%ReLU function
2+
x = -10:0.01:10;
3+
y = x;
4+
y(x<0) = 0;
5+
plot(x,y);
6+
xlabel('x');
7+
ylabel('y');
8+
grid on
9+
© 2020 GitHub, Inc.

0 commit comments

Comments
 (0)