Skip to content

Commit

Permalink
Merge pull request nicodjimenez#4 from kurnianggoro/master
Browse files Browse the repository at this point in the history
randomize the weight values
  • Loading branch information
Nicolas D. Jimenez committed Feb 15, 2016
2 parents 0eadace + 7a79bdc commit aa7cd70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def sigmoid(x):

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

class LstmParam:
Expand Down

0 comments on commit aa7cd70

Please sign in to comment.