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 — Add name to fct. · imclab/DeepLearningTutorials@509b7c4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • code
    • SdA.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/SdA.py‎

Copy file name to clipboardExpand all lines: code/SdA.py
+6-3Lines 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 (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.