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 — use the new parameter p instead of prob to remove deprecation warning. · hdubey/DeepLearningTutorials@9153f45

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • code
    • dA.py
  • doc
    • dA.txt
    • rbm.txt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/dA.py‎

Copy file name to clipboardExpand all lines: code/dA.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def get_corrupted_input(self, input, corruption_level):
179179
is always 0 or 1, this don't change the result. This is needed to allow
180180
the gpu to work correctly as it only support float32 for now.
181181
"""
182-
return self.theano_rng.binomial( size = input.shape, n = 1, prob = 1 - corruption_level, dtype=theano.config.floatX) * input
182+
return self.theano_rng.binomial( size = input.shape, n = 1, p = 1 - corruption_level, dtype=theano.config.floatX) * input
183183

184184

185185
def get_hidden_values(self, input):
Collapse file

‎doc/dA.txt‎

Copy file name to clipboardExpand all lines: doc/dA.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ does just that :
343343
this will produce an array of 0s and 1s where 1 has a probability of
344344
1 - ``corruption_level`` and 0 with ``corruption_level``
345345
"""
346-
return self.theano_rng.binomial( size = input.shape, n = 1, prob = 1 - corruption_level) * input
346+
return self.theano_rng.binomial( size = input.shape, n = 1, p = 1 - corruption_level) * input
347347

348348

349349

@@ -485,7 +485,7 @@ The final denoising autoencoder class becomes :
485485
this will produce an array of 0s and 1s where 1 has a probability of
486486
1 - ``corruption_level`` and 0 with ``corruption_level``
487487
"""
488-
return self.theano_rng.binomial( size = input.shape, n = 1, prob = 1 - corruption_level) * input
488+
return self.theano_rng.binomial( size = input.shape, n = 1, p = 1 - corruption_level) * input
489489

490490

491491
def get_hidden_values(self, input):
Collapse file

‎doc/rbm.txt‎

Copy file name to clipboardExpand all lines: doc/rbm.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ with Eqs. :eq:`rbm_propup` - :eq:`rbm_propdown`. The code is as follows:
416416
# Note that theano_rng.binomial returns a symbolic sample of dtype
417417
# int64 by default. If we want to keep our computations in floatX
418418
# for the GPU we need to specify to return the dtype floatX
419-
h1_sample = self.theano_rng.binomial(size = h1_mean.shape, n = 1, prob = h1_mean,
419+
h1_sample = self.theano_rng.binomial(size = h1_mean.shape, n = 1, p = h1_mean,
420420
dtype = theano.config.floatX)
421421
return [pre_sigmoid_h1, h1_mean, h1_sample]
422422

@@ -440,7 +440,7 @@ with Eqs. :eq:`rbm_propup` - :eq:`rbm_propdown`. The code is as follows:
440440
# Note that theano_rng.binomial returns a symbolic sample of dtype
441441
# int64 by default. If we want to keep our computations in floatX
442442
# for the GPU we need to specify to return the dtype floatX
443-
v1_sample = self.theano_rng.binomial(size = v1_mean.shape,n = 1,prob = v1_mean,
443+
v1_sample = self.theano_rng.binomial(size = v1_mean.shape,n = 1,p = v1_mean,
444444
dtype = theano.config.floatX)
445445
return [pre_sigmoid_v1, v1_mean, v1_sample]
446446

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.