|
1 | 1 | #import convolutional_mlp, dbn, logistic_cg, logistic_sgd, mlp, rbm, SdA_loops, SdA |
2 | | -import convolutional_mlp, logistic_cg, logistic_sgd, mlp, SdA |
| 2 | +import convolutional_mlp, logistic_cg, logistic_sgd, mlp, SdA, dA |
3 | 3 | from nose.plugins.skip import SkipTest |
| 4 | +import time,sys |
4 | 5 | #TODO: dbn, rbm, SdA, SdA_loops, convolutional_mlp |
5 | 6 | def test_logistic_sgd(): |
| 7 | + t0=time.time() |
6 | 8 | logistic_sgd.sgd_optimization_mnist(n_epochs=10) |
| 9 | + print >> sys.stderr, "test_logistic_sgd took %.3fs expected 15.2s in our buildbot"%(time.time()-t0) |
7 | 10 | def test_logistic_cg(): |
| 11 | + t0=time.time() |
8 | 12 | logistic_cg.cg_optimization_mnist(n_epochs=10) |
| 13 | + print >> sys.stderr, "test_logistic_cg took %.3fs expected 14s in our buildbot"%(time.time()-t0) |
9 | 14 | def test_mlp(): |
| 15 | + t0=time.time() |
10 | 16 | mlp.test_mlp(n_epochs=5) |
| 17 | + print >> sys.stderr, "test_mlp took %.3fs expected 118s in our buildbot"%(time.time()-t0) |
11 | 18 | def test_convolutional_mlp(): |
| 19 | + t0=time.time() |
12 | 20 | convolutional_mlp.evaluate_lenet5(n_epochs=5,nkerns=[5,5]) |
| 21 | + print >> sys.stderr, "test_convolutional_mlp took %.3fs expected 168s in our buildbot"%(time.time()-t0) |
13 | 22 | def test_dbn(): |
14 | 23 | raise SkipTest('Implementation not finished') |
15 | 24 | def test_rbm(): |
16 | 25 | raise SkipTest('Implementation not finished') |
| 26 | +def test_dA(): |
| 27 | + t0=time.time() |
| 28 | + dA.test_dA(training_epochs = 3) |
| 29 | + print >> sys.stderr, "test_dA took %.3fs expected Xs in our buildbot"%(time.time()-t0) |
17 | 30 | def test_SdA(): |
| 31 | + t0=time.time() |
18 | 32 | SdA.test_SdA(pretraining_epochs = 2, training_epochs = 3) |
| 33 | + print >> sys.stderr, "test_SdA took %.3fs expected 971s in our buildbot"%(time.time()-t0) |
0 commit comments