Skip to content

Commit 2a23f17

Browse files
author
Yoshua Bengio
committed
fixes in rbm comments
1 parent e972e03 commit 2a23f17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

code/rbm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def test_rbm(learning_rate=0.1, training_epochs = 15,
261261
rng = numpy.random.RandomState(123)
262262
theano_rng = RandomStreams( rng.randint(2**30))
263263

264-
# initialize storage fot the persistent chain (state = hidden layer of chain)
264+
# initialize storage for the persistent chain (state = hidden layer of chain)
265265
persistent_chain = theano.shared(numpy.zeros((batch_size, 500)))
266266

267267
# construct the RBM class
@@ -330,7 +330,7 @@ def test_rbm(learning_rate=0.1, training_epochs = 15,
330330
# define one step of Gibbs sampling (mf = mean-field)
331331
[hid_mf, hid_sample, vis_mf, vis_sample] = rbm.gibbs_vhv(persistent_vis_chain)
332332

333-
# the sample at the end of the channel is returned by ``gibbs_vhb`` as
333+
# the sample at the end of the channel is returned by ``gibbs_vhv`` as
334334
# its last output; note that this is computed as a binomial draw,
335335
# therefore it is formed of ints (0 and 1) and therefore needs to
336336
# be converted to the same dtype as ``persistent_vis_chain``

0 commit comments

Comments
 (0)