Skip to content

Commit b4cb985

Browse files
committed
Merge pull request lisa-lab#31 from nouiz/master
Fix typo and fix reference to old class that was renamed
2 parents 076317e + 00961d2 commit b4cb985

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/convolutional_mlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def evaluate_lenet5(learning_rate=0.1, n_epochs=200,
171171
image_shape=(batch_size, nkerns[0], 12, 12),
172172
filter_shape=(nkerns[1], nkerns[0], 5, 5), poolsize=(2, 2))
173173

174-
# the TanhLayer being fully-connected, it operates on 2D matrices of
174+
# the HiddenLayer being fully-connected, it operates on 2D matrices of
175175
# shape (batch_size,num_pixels) (i.e matrix of rasterized images).
176176
# This will generate a matrix of shape (20,32*4*4) = (20,512)
177177
layer2_input = layer1.output.flatten(2)

code/mlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class MLP(object):
107107
108108
A multilayer perceptron is a feedforward artificial neural network model
109109
that has one layer or more of hidden units and nonlinear activations.
110-
Intermediate layers usually have as activation function thanh or the
110+
Intermediate layers usually have as activation function tanh or the
111111
sigmoid function (defined here by a ``HiddenLayer`` class) while the
112112
top layer is a softamx layer (defined here by a ``LogisticRegression``
113113
class).

0 commit comments

Comments
 (0)