Skip to content

Commit 509b7c4

Browse files
committed
Add name to fct.
1 parent 061d835 commit 509b7c4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

code/SdA.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,21 +263,24 @@ def build_finetune_functions(self, datasets, batch_size, learning_rate):
263263
self.x: train_set_x[index * batch_size:
264264
(index + 1) * batch_size],
265265
self.y: train_set_y[index * batch_size:
266-
(index + 1) * batch_size]})
266+
(index + 1) * batch_size]},
267+
name='train')
267268

268269
test_score_i = theano.function([index], self.errors,
269270
givens={
270271
self.x: test_set_x[index * batch_size:
271272
(index + 1) * batch_size],
272273
self.y: test_set_y[index * batch_size:
273-
(index + 1) * batch_size]})
274+
(index + 1) * batch_size]},
275+
name='test')
274276

275277
valid_score_i = theano.function([index], self.errors,
276278
givens={
277279
self.x: valid_set_x[index * batch_size:
278280
(index + 1) * batch_size],
279281
self.y: valid_set_y[index * batch_size:
280-
(index + 1) * batch_size]})
282+
(index + 1) * batch_size]},
283+
name='valid')
281284

282285
# Create a function that scans the entire validation set
283286
def valid_score():

0 commit comments

Comments
 (0)