GeezerVison is showing github.com — removed the expected time from the tutorial code. Now into test.py:speed · mpage/DeepLearningTutorials@a8ee2e6
File treeExpand 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/DBN.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -297,7 +297,7 @@ def test_DBN( finetune_lr = 0.1, pretraining_epochs = 10, \ | 297 | 297 | print 'Pre-training layer %i, epoch %d, cost '%(i,epoch),numpy.mean(c) | 298 | 298 |
| 299 | 299 | end_time = time.clock() | 300 | | - print >> sys.stderr, ('The pretraining code for file '+os.path.split(__file__)[1]+' ran for %.2fm expected Xm our buildbot' % ((end_time-start_time)/60.)) | | 300 | + print >> sys.stderr, ('The pretraining code for file '+os.path.split(__file__)[1]+' ran for %.2fm' % ((end_time-start_time)/60.)) | 301 | 301 |
| 302 | 302 | ######################## | 303 | 303 | # FINETUNING THE MODEL # | @@ -376,7 +376,7 @@ def test_DBN( finetune_lr = 0.1, pretraining_epochs = 10, \ | 376 | 376 | print(('Optimization complete with best validation score of %f %%,' | 377 | 377 | 'with test performance %f %%') % | 378 | 378 | (best_validation_loss * 100., test_score*100.)) | 379 | | - print >> sys.stderr, ('The fine tuning code for file '+os.path.split(__file__)[1]+' ran for %.2fm expected Xm our buildbot' % ((end_time-start_time)/60.)) | | 379 | + print >> sys.stderr, ('The fine tuning code for file '+os.path.split(__file__)[1]+' ran for %.2fm' % ((end_time-start_time)/60.)) | 380 | 380 |
| 381 | 381 |
| 382 | 382 |
| |
Collapse file Copy file name to clipboardExpand all lines: code/SdA.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -349,7 +349,7 @@ def test_SdA( finetune_lr = 0.1, pretraining_epochs = 15, \ | 349 | 349 |
| 350 | 350 | end_time = time.clock() | 351 | 351 |
| 352 | | - print >> sys.stderr, ('The pretraining code for file '+os.path.split(__file__)[1]+' ran for %.2fm expected 4.58m in our buildbot' % ((end_time-start_time)/60.)) | | 352 | + print >> sys.stderr, ('The pretraining code for file '+os.path.split(__file__)[1]+' ran for %.2fm' % ((end_time-start_time)/60.)) | 353 | 353 |
| 354 | 354 | ######################## | 355 | 355 | # FINETUNING THE MODEL # | @@ -426,7 +426,7 @@ def test_SdA( finetune_lr = 0.1, pretraining_epochs = 15, \ | 426 | 426 | print(('Optimization complete with best validation score of %f %%,' | 427 | 427 | 'with test performance %f %%') % | 428 | 428 | (best_validation_loss * 100., test_score*100.)) | 429 | | - print >> sys.stderr, ('The training code for file '+os.path.split(__file__)[1]+' ran for %.2fm expected 3.91m in our buildbot' % ((end_time-start_time)/60.)) | | 429 | + print >> sys.stderr, ('The training code for file '+os.path.split(__file__)[1]+' ran for %.2fm' % ((end_time-start_time)/60.)) | 430 | 430 |
| 431 | 431 |
| 432 | 432 |
| |
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 |
|---|
@@ -282,7 +282,7 @@ def evaluate_lenet5(learning_rate=0.1, n_epochs=200, dataset='../data/mnist.pkl. | 282 | 282 | print('Best validation score of %f %% obtained at iteration %i,'\ | 283 | 283 | 'with test performance %f %%' % | 284 | 284 | (best_validation_loss * 100., best_iter, test_score*100.)) | 285 | | - print >> sys.stderr, ('The code for file '+os.path.split(__file__)[1]+' ran for %.2fm expected 2.51m in our buildbot' % ((end_time-start_time)/60.)) | | 285 | + print >> sys.stderr, ('The code for file '+os.path.split(__file__)[1]+' ran for %.2fm' % ((end_time-start_time)/60.)) | 286 | 286 |
| 287 | 287 | if __name__ == '__main__': | 288 | 288 | evaluate_lenet5() | |
Collapse file Copy file name to clipboardExpand all lines: code/dA.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -285,7 +285,7 @@ def test_dA( learning_rate = 0.1, training_epochs = 15, dataset ='../data/mnist. | 285 | 285 |
| 286 | 286 | training_time = (end_time - start_time) | 287 | 287 |
| 288 | | - print >> sys.stderr, ('The no corruption code for file '+os.path.split(__file__)[1]+' ran for %.2fm expected 1.17m our buildbot' % ((training_time)/60.)) | | 288 | + print >> sys.stderr, ('The no corruption code for file '+os.path.split(__file__)[1]+' ran for %.2fm' % ((training_time)/60.)) | 289 | 289 | image = PIL.Image.fromarray(tile_raster_images( X = da.W.value.T, | 290 | 290 | img_shape = (28,28),tile_shape = (10,10), | 291 | 291 | tile_spacing=(1,1))) | @@ -327,7 +327,7 @@ def test_dA( learning_rate = 0.1, training_epochs = 15, dataset ='../data/mnist. | 327 | 327 |
| 328 | 328 | training_time = (end_time - start_time) | 329 | 329 |
| 330 | | - print >> sys.stderr, ('The 30% corruption code for file '+os.path.split(__file__)[1]+' ran for %.2fm expected 1.18m our buildbot' % (training_time/60.)) | | 330 | + print >> sys.stderr, ('The 30% corruption code for file '+os.path.split(__file__)[1]+' ran for %.2fm' % (training_time/60.)) | 331 | 331 |
| 332 | 332 | image = PIL.Image.fromarray(tile_raster_images( X = da.W.value.T, | 333 | 333 | img_shape = (28,28),tile_shape = (10,10), | |
Collapse file Copy file name to clipboardExpand all lines: code/logistic_cg.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -302,7 +302,7 @@ def callback(theta_value): | 302 | 302 | 'test performance %f %%') % | 303 | 303 | (validation_scores[0]*100., validation_scores[1]*100.)) | 304 | 304 |
| 305 | | - print >> sys.stderr, ('The code for file '+os.path.split(__file__)[1]+' ran for %.1fs expected 6.8s in our buildbot' % ((end_time-start_time))) | | 305 | + print >> sys.stderr, ('The code for file '+os.path.split(__file__)[1]+' ran for %.1fs' % ((end_time-start_time))) | 306 | 306 |
| 307 | 307 |
| 308 | 308 | if __name__ == '__main__': | |
Collapse file Copy file name to clipboardExpand all lines: code/logistic_sgd.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -341,7 +341,7 @@ def sgd_optimization_mnist(learning_rate=0.13, n_epochs=1000, dataset='../data/m | 341 | 341 | 'with test performance %f %%') % | 342 | 342 | (best_validation_loss * 100., test_score*100.)) | 343 | 343 | print 'The code run for %d epochs, with %f epochs/sec'%(epoch,1.*epoch/(end_time-start_time)) | 344 | | - print >> sys.stderr, ('The code for file '+os.path.split(__file__)[1]+' ran for %.1fs expected 3.8s in our buildbot' % ((end_time-start_time))) | | 344 | + print >> sys.stderr, ('The code for file '+os.path.split(__file__)[1]+' ran for %.1fs' % ((end_time-start_time))) | 345 | 345 |
| 346 | 346 | if __name__ == '__main__': | 347 | 347 | sgd_optimization_mnist() | |
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 |
|---|
@@ -345,7 +345,7 @@ def test_mlp( learning_rate=0.01, L1_reg = 0.00, L2_reg = 0.0001, n_epochs=1000, | 345 | 345 | print(('Optimization complete. Best validation score of %f %% ' | 346 | 346 | 'obtained at iteration %i, with test performance %f %%') % | 347 | 347 | (best_validation_loss * 100., best_iter, test_score*100.)) | 348 | | - print >> sys.stderr, ('The code for file '+os.path.split(__file__)[1]+' ran for %.2fm expected 1.51m in our buildbot' % ((end_time-start_time)/60.)) | | 348 | + print >> sys.stderr, ('The code for file '+os.path.split(__file__)[1]+' ran for %.2fm' % ((end_time-start_time)/60.)) | 349 | 349 |
| 350 | 350 |
| 351 | 351 | if __name__ == '__main__': | |
|