Mercurial > ift6266
diff code_tutoriel/mlp.py @ 18:827de2cc34f8
Error on the sign of the lower bound of the initialization of W2
author | Owner <salahmeister@gmail.com> |
---|---|
date | Thu, 28 Jan 2010 13:29:07 -0600 |
parents | bcc87d3e33a3 |
children | 4bc5eeec6394 |
line wrap: on
line diff
--- a/code_tutoriel/mlp.py Thu Jan 28 14:14:53 2010 -0500 +++ b/code_tutoriel/mlp.py Thu Jan 28 13:29:07 2010 -0600 @@ -83,7 +83,7 @@ # the output of uniform if converted using asarray to dtype # theano.config.floatX so that the code is runable on GPU W2_values = numpy.asarray( numpy.random.uniform( - low = numpy.sqrt(6./(n_hidden+n_out)), \ + low = -numpy.sqrt(6./(n_hidden+n_out)), \ high= numpy.sqrt(6./(n_hidden+n_out)),\ size= (n_hidden, n_out)), dtype = theano.config.floatX)