GeezerVison is showing github.com — Also report best_iter + 1 as best iteration · able/DeepLearningTutorials@2bd0018
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: code/convolutional_mlp.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -290,7 +290,7 @@ def evaluate_lenet5(learning_rate=0.1, n_epochs=200, |
290 | 290 | print('Optimization complete.') |
291 | 291 | print('Best validation score of %f %% obtained at iteration %i,'\ |
292 | 292 | 'with test performance %f %%' % |
293 | | - (best_validation_loss * 100., best_iter, test_score * 100.)) |
| 293 | + (best_validation_loss * 100., best_iter + 1, test_score * 100.)) |
294 | 294 | print >> sys.stderr, ('The code for file ' + |
295 | 295 | os.path.split(__file__)[1] + |
296 | 296 | ' ran for %.2fm' % ((end_time - start_time) / 60.)) |
|
Collapse file
Copy file name to clipboardExpand all lines: code/mlp.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -348,7 +348,7 @@ def test_mlp(learning_rate=0.01, L1_reg=0.00, L2_reg=0.0001, n_epochs=1000, |
348 | 348 | end_time = time.clock() |
349 | 349 | print(('Optimization complete. Best validation score of %f %% ' |
350 | 350 | 'obtained at iteration %i, with test performance %f %%') % |
351 | | - (best_validation_loss * 100., best_iter, test_score * 100.)) |
| 351 | + (best_validation_loss * 100., best_iter + 1, test_score * 100.)) |
352 | 352 | print >> sys.stderr, ('The code for file ' + |
353 | 353 | os.path.split(__file__)[1] + |
354 | 354 | ' ran for %.2fm' % ((end_time - start_time) / 60.)) |
|