Skip to content

Commit 72304c3

Browse files
author
Razvan Pascanu
committed
bug that made DBN always run CD-1
1 parent 7bc7f36 commit 72304c3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

code/DBN.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ def pretraining_functions(self, train_set_x, batch_size,k):
160160

161161
# compile the theano function
162162
fn = theano.function(inputs = [index,
163-
theano.Param(learning_rate, default = 0.1),
164-
theano.Param(k, default = 1)],
163+
theano.Param(learning_rate, default = 0.1)],
165164
outputs = cost,
166165
updates = updates,
167166
givens = {self.x :train_set_x[batch_begin:batch_end]})

0 commit comments

Comments
 (0)