comparison code_tutoriel/test.py @ 165:4bc5eeec6394

Updating the tutorial code to the latest revisions.
author Dumitru Erhan <dumitru.erhan@gmail.com>
date Fri, 26 Feb 2010 13:55:27 -0500
parents
children
comparison
equal deleted inserted replaced
164:e3de934a98b6 165:4bc5eeec6394
1 #import convolutional_mlp, dbn, logistic_cg, logistic_sgd, mlp, rbm, SdA_loops, SdA
2 import convolutional_mlp, logistic_cg, logistic_sgd, mlp, SdA
3 from nose.plugins.skip import SkipTest
4 #TODO: dbn, rbm, SdA, SdA_loops, convolutional_mlp
5 def test_logistic_sgd():
6 logistic_sgd.sgd_optimization_mnist(n_epochs=10)
7 def test_logistic_cg():
8 logistic_cg.cg_optimization_mnist(n_epochs=10)
9 def test_mlp():
10 mlp.test_mlp(n_epochs=5)
11 def test_convolutional_mlp():
12 convolutional_mlp.evaluate_lenet5(n_epochs=5,nkerns=[5,5])
13 def test_dbn():
14 raise SkipTest('Implementation not finished')
15 def test_rbm():
16 raise SkipTest('Implementation not finished')
17 def test_SdA():
18 SdA.test_SdA(pretraining_epochs = 2, training_epochs = 3)