Skip to content

Commit 8fe5fab

Browse files
authored
Merge pull request #41 from Yukti-09/patch-9
Create ReLU6.m
2 parents 5a4b1c9 + 6ccd77b commit 8fe5fab

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+
%ReLU6 function
2+
x = -10:0.01:10;
3+
y = x;
4+
y(x<0) = 0;
5+
y(x>=6) = 6;
6+
plot(x,y);
7+
xlabel('x');
8+
ylabel('y');
9+
grid on

0 commit comments

Comments
 (0)