Skip to content

Commit 9199e15

Browse files
committed
Merge pull request lisa-lab#89 from memimo/dbn
Replace rng with MRG in DBN tutorial
2 parents b0dd8f0 + 1caef8f commit 9199e15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: code/DBN.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import theano
1010
import theano.tensor as T
11-
from theano.tensor.shared_randomstreams import RandomStreams
11+
from theano.sandbox.rng_mrg import MRG_RandomStreams
1212

1313
from logistic_sgd import LogisticRegression, load_data
1414
from mlp import HiddenLayer
@@ -58,7 +58,7 @@ def __init__(self, numpy_rng, theano_rng=None, n_ins=784,
5858
assert self.n_layers > 0
5959

6060
if not theano_rng:
61-
theano_rng = RandomStreams(numpy_rng.randint(2 ** 30))
61+
theano_rng = MRG_RandomStreams(numpy_rng.randint(2 ** 30))
6262

6363
# allocate symbolic variables for the data
6464
self.x = T.matrix('x') # the data is presented as rasterized images

0 commit comments

Comments
 (0)