Skip to content

Commit 4256877

Browse files
committed
Fixed signed bug in weight initialization
1 parent 39333dd commit 4256877

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/mlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, input, n_in, n_hidden, n_out):
8383
# the output of uniform if converted using asarray to dtype
8484
# theano.config.floatX so that the code is runable on GPU
8585
W2_values = numpy.asarray( numpy.random.uniform(
86-
low = numpy.sqrt(6./(n_hidden+n_out)), \
86+
low = -numpy.sqrt(6./(n_hidden+n_out)), \
8787
high= numpy.sqrt(6./(n_hidden+n_out)),\
8888
size= (n_hidden, n_out)), dtype = theano.config.floatX)
8989

0 commit comments

Comments
 (0)