Mercurial > ift6266
diff code_tutoriel/mlp.py @ 20:1e9525aba832
merge
author | Xavier Glorot <glorotxa@iro.umontreal.ca> |
---|---|
date | Thu, 28 Jan 2010 14:54:28 -0500 |
parents | 827de2cc34f8 |
children | 4bc5eeec6394 |
line wrap: on
line diff
--- a/code_tutoriel/mlp.py Thu Jan 28 14:48:12 2010 -0500 +++ b/code_tutoriel/mlp.py Thu Jan 28 14:54:28 2010 -0500 @@ -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)