Skip to content

Commit f7278bf

Browse files
author
Merouane Atig
committed
Random initialization
1 parent b27fb04 commit f7278bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlclass-ex4/randInitializeWeights.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
%
2121

2222

23-
23+
epsilon_init = 0.12;
24+
W = rand(L_out, 1 + L_in) * 2 * epsilon_init - epsilon_init;
2425

2526

2627

0 commit comments

Comments
 (0)