Skip to content

Commit 10db616

Browse files
committed
Merge branch 'master' of git@github.com:lisa-lab/DeepLearningTutorials
2 parents ffa5bf9 + af7aa84 commit 10db616

4 files changed

Lines changed: 28 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
code/mnist.pkl.gz
22
html
3+
*.pyc
4+
*~

code/convolutional_mlp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
import theano.tensor as T
2626
import theano.sandbox.softsign
2727
import pylearn.datasets.MNIST
28-
from theano.tensor.signal import conv, downsample
28+
from theano.tensor.signal import downsample
29+
from theano.tensor.nnet import conv
2930

3031
class LeNetConvPoolLayer(object):
3132
"""WRITEME"""

code/test.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#import convolutional_mlp, dbn, logistic_cg, logistic_sgd, mlp, rbm, SdA_loops, SdA
2+
import convolutional_mlp, logistic_cg, logistic_sgd, mlp, SdA_loops, 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_iter=10)
7+
def test_logistic_cg():
8+
logistic_cg.cg_optimization_mnist(n_iter=10)
9+
def test_mlp():
10+
mlp.sgd_optimization_mnist(n_iter=5)
11+
def test_convolutional_mlp():
12+
raise SkipTest('Implementation not finished')
13+
convolutional_mlp.evaluate_lenet5(n_iter=5)
14+
def test_dbn():
15+
raise SkipTest('Implementation not finished')
16+
def test_rbm():
17+
raise SkipTest('Implementation not finished')
18+
def test_SdA_loops():
19+
raise SkipTest('Implementation not finished')
20+
SdA_loops.sgd_optimization_mnist()
21+
def test_SdA():
22+
raise SkipTest('Implementation not finished')
23+
SdA.sgd_optimization_mnist()

doc/lenet.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ one of Figure 1. The input consists of 3 features maps (an RGB color image) of s
154154

155155
.. code-block:: python
156156

157-
from theano.tensor.signal import conv
157+
from theano.tensor.nnet import conv
158158
rng = numpy.random.RandomState(23455)
159159

160160
# create type corresponding to 4D tensor

0 commit comments

Comments
 (0)