Mercurial > pylearn
changeset 515:dc2d93590da0
Small bugfix in hidden weight initialization.
author | Joseph Turian <turian@iro.umontreal.ca> |
---|---|
date | Fri, 31 Oct 2008 16:37:19 -0400 |
parents | a4d34dad3083 |
children | 2b0e10ac6929 |
files | algorithms/daa.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/algorithms/daa.py Fri Oct 31 11:08:25 2008 -0400 +++ b/algorithms/daa.py Fri Oct 31 16:37:19 2008 -0400 @@ -139,7 +139,7 @@ hif = 1/N.sqrt(hidden_size) obj.w1 = R.uniform(size = sz, low = -inf, high = inf) if not self.tie_weights: - obj.w2 = R.uniform(size = list(reversed(sz)), low = -inf, high = inf) + obj.w2 = R.uniform(size = list(reversed(sz)), low = -hif, high = hif) obj.b1 = N.zeros(hidden_size) obj.b2 = N.zeros(input_size) if seed is not None: