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 — Small adjustments to inclusion of code in ReStructuredText files. · iamsile/DeepLearningTutorials@899adfd

File tree

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

‎code/hmc/hmc.py‎

Copy file name to clipboardExpand all lines: code/hmc/hmc.py
+15-9Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,21 @@ def __init__(self, **kwargs):
321321
self.__dict__.update(kwargs)
322322

323323
@classmethod
324-
def new_from_shared_positions(cls, shared_positions, energy_fn,
325-
initial_stepsize=0.01, target_acceptance_rate=.9, n_steps=20,
326-
stepsize_dec=0.98,
327-
stepsize_min=0.001,
328-
stepsize_max=0.25,
329-
stepsize_inc=1.02,
330-
# used in geometric avg. 1.0 would be not moving at all
331-
avg_acceptance_slowness=0.9,
332-
seed=12345):
324+
def new_from_shared_positions(
325+
cls,
326+
shared_positions,
327+
energy_fn,
328+
initial_stepsize=0.01,
329+
target_acceptance_rate=.9,
330+
n_steps=20,
331+
stepsize_dec=0.98,
332+
stepsize_min=0.001,
333+
stepsize_max=0.25,
334+
stepsize_inc=1.02,
335+
# used in geometric avg. 1.0 would be not moving at all
336+
avg_acceptance_slowness=0.9,
337+
seed=12345
338+
):
333339
"""
334340
:param shared_positions: theano ndarray shared var with
335341
many particle [initial] positions
Collapse file

‎doc/DBN.txt‎

Copy file name to clipboardExpand all lines: doc/DBN.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ The few lines of code below constructs the deep belief network :
214214

215215
.. literalinclude:: ../code/DBN.py
216216
:start-after: # numpy random generator
217-
:end-before: #########################
217+
:end-before: start-snippet-2
218218

219219
There are two stages in training this network: (1) a layer-wise pre-training and
220220
(2) a fine-tuning stage.

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.