changeset 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 c91d9f70206d
children 1e9525aba832
files code_tutoriel/mlp.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)