Skip to content

Commit a3010db

Browse files
committed
Merge branch 'master' of git@github.com:lisa-lab/DeepLearningTutorials
Conflicts: code/convolutional_mlp.py doc/lenet.txt
2 parents 82c1694 + ca5c0bd commit a3010db

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

doc/intro.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ make sense of data such as images, sound, and text.
1414
For more about deep learning algorithms, see for example:
1515

1616
- The monograph or review paper `Learning Deep Architectures for AI <http://www.iro.umontreal.ca/~lisa/publications2/index.php/publications/show/239>`_ (Foundations & Trends in Machine Learning, 2009).
17-
- The ICML 2009 Workshop on Learning Feature Hierarchies `webpage <http://www.cs.toronto.edu/~rsalakhu/deeplearning/index.html>`_ has a `reading list <http://www.cs.toronto.edu/~rsalakhu/deeplearning/references.html>`_.
17+
- The ICML 2009 Workshop on Learning Feature Hierarchies `webpage <http://www.cs.toronto.edu/~rsalakhu/deeplearning/index.html>`_ has a `list of references <http://www.cs.toronto.edu/~rsalakhu/deeplearning/references.html>`_.
1818
- The LISA `public wiki <http://www.iro.umontreal.ca/~lisa/twiki/bin/view.cgi/Public/WebHome>`_ has a `reading list <http://www.iro.umontreal.ca/~lisa/twiki/bin/view.cgi/Public/ReadingOnDeepNetworks>`_ and a `bibliography <http://www.iro.umontreal.ca/~lisa/twiki/bin/view.cgi/Public/DeepNetworksBibliography>`_.
1919
- Geoff Hinton has `readings <http://www.cs.toronto.edu/~hinton/deeprefs.html>`_ from last year's `NIPS tutorial <http://videolectures.net/jul09_hinton_deeplearn/>`_.
2020

doc/lenet.txt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ layer. For max-pooling over a 3x3 window, this jumps to 5/8.
253253
Since it provides additional robustness to position, max-pooling is thus a
254254
"smart" way of reducing the dimensionality of intermediate representations.
255255

256-
Max-pooling is done in Theano by way of theano.tensor.signal.downsample.max_pool2D.
256+
Max-pooling is done in Theano by way of ``theano.tensor.signal.downsample.max_pool2D``.
257257
This function takes as input an N dimensional tensor (with N >= 2), a
258258
downscaling factor and performs max-pooling over the 2 trailing dimensions of
259259
the tensor.
@@ -292,30 +292,26 @@ This should generate the following output:
292292
[ 6.70467510e-01 4.17304802e-01 5.58689828e-01 1.40386939e-01 1.98101489e-01]
293293
[ 8.00744569e-01 9.68261576e-01 3.13424178e-01 6.92322616e-01 8.76389152e-01]]
294294
output[0,0,:,:] =
295-
[[ 0.72032449 0.39676747 0.53881673]
296-
[ 0.6852195 0.87811744 0.19810149]
297-
[ 0.96826158 0.69232262 0.87638915]]
295+
[[ 0.72032449 0.39676747]
296+
[ 0.6852195 0.87811744]]
298297

299298
With ignore_border set to False:
300299
invals[1,0,:,:] =
301-
[[ 0.01936696 0.67883553 0.21162812 0.26554666 0.49157316]
300+
[[ 0.01936696 0.67883553 0.21162812 0.26554666 0.49157316]
302301
[ 0.05336255 0.57411761 0.14672857 0.58930554 0.69975836]
303302
[ 0.10233443 0.41405599 0.69440016 0.41417927 0.04995346]
304303
[ 0.53589641 0.66379465 0.51488911 0.94459476 0.58655504]
305304
[ 0.90340192 0.1374747 0.13927635 0.80739129 0.39767684]]
306305
output[1,0,:,:] =
307-
[[ 0.67883553 0.58930554 0.69975836]
306+
[[ 0.67883553 0.58930554 0.69975836]
308307
[ 0.66379465 0.94459476 0.58655504]
309308
[ 0.90340192 0.80739129 0.39767684]]
310309

311-
Note that contrary to most Theano code, the max_pool2D operation is a little
312-
*special*. It requires the downscaling factor ds (tuple of length 2 containing
310+
Note that contrary to most Theano code, the ``max_pool2D`` operation is a little
311+
*special*. It requires the downscaling factor ``ds`` (tuple of length 2 containing
313312
downscaling factors for image width and height) to be known at graph build
314313
time. This may change in the near future.
315314

316-
.. Warning::
317-
The *ignore_border* parameter of max_pool2D is clearly broken !
318-
319315

320316
The Full Model: LeNet
321317
+++++++++++++++++++++
@@ -592,7 +588,7 @@ particular dataset.
592588

593589

594590
Max Pooling Shape
595-
****************
591+
*****************
596592
Typical values are 2x2 or no max-pooling. Very large input images may warrant
597593
4x4 pooling in the lower-layers. Keep in mind however, that this will reduce the
598594
dimension of the signal by a factor of 16, and may result in throwing away too

0 commit comments

Comments
 (0)