Skip to content

Commit 6cff28b

Browse files
author
Razvan Pascanu
committed
numpy random generator
1 parent f9c9339 commit 6cff28b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/rbm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, input=None, n_visible=784, n_hidden=500, \
5555
# from -4*sqrt(6./(n_visible+n_hidden)) and 4*sqrt(6./(n_hidden+n_visible))
5656
# the output of uniform if converted using asarray to dtype
5757
# theano.config.floatX so that the code is runable on GPU
58-
initial_W = numpy.asarray( numpy.random.uniform(
58+
initial_W = numpy.asarray( numpy_rng.uniform(
5959
low = -4*numpy.sqrt(6./(n_hidden+n_visible)),
6060
high = 4*numpy.sqrt(6./(n_hidden+n_visible)),
6161
size = (n_visible, n_hidden)),

0 commit comments

Comments
 (0)