Mercurial > pylearn
diff algorithms/daa.py @ 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 | da916044454c |
children |
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: