GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — replace rng with MRG · mpage/DeepLearningTutorials@1caef8f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • code
    • DBN.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/DBN.py‎

Copy file name to clipboardExpand all lines: code/DBN.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.