Skip to content

Commit 2bd0018

Browse files
committed
Also report best_iter + 1 as best iteration
1 parent 2dd943a commit 2bd0018

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/convolutional_mlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def evaluate_lenet5(learning_rate=0.1, n_epochs=200,
290290
print('Optimization complete.')
291291
print('Best validation score of %f %% obtained at iteration %i,'\
292292
'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.))
294294
print >> sys.stderr, ('The code for file ' +
295295
os.path.split(__file__)[1] +
296296
' ran for %.2fm' % ((end_time - start_time) / 60.))

code/mlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def test_mlp(learning_rate=0.01, L1_reg=0.00, L2_reg=0.0001, n_epochs=1000,
348348
end_time = time.clock()
349349
print(('Optimization complete. Best validation score of %f %% '
350350
'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.))
352352
print >> sys.stderr, ('The code for file ' +
353353
os.path.split(__file__)[1] +
354354
' ran for %.2fm' % ((end_time - start_time) / 60.))

0 commit comments

Comments
 (0)