Skip to content

Commit aa7cd70

Browse files
author
Nicolas D. Jimenez
committed
Merge pull request nicodjimenez#4 from kurnianggoro/master
randomize the weight values
2 parents 0eadace + 7a79bdc commit aa7cd70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lstm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def sigmoid(x):
88

99
# createst uniform random array w/ values in [a,b) and shape args
1010
def rand_arr(a, b, *args):
11+
np.random.seed(0)
1112
return np.random.rand(*args) * (b - a) + a
1213

1314
class LstmParam:

0 commit comments

Comments
 (0)