# HG changeset patch # User Joseph Turian # Date 1225485439 14400 # Node ID dc2d93590da099726fcb2274c535d779e2fe0346 # Parent a4d34dad3083faec8f760cf5fc5a9bf6c7290a6b Small bugfix in hidden weight initialization. diff -r a4d34dad3083 -r dc2d93590da0 algorithms/daa.py --- 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: