GeezerVison is showing github.com — Merge pull request #31 from nouiz/master · NoriVicJr/DeepLearningTutorials@b4cb985
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: code/convolutional_mlp.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -171,7 +171,7 @@ def evaluate_lenet5(learning_rate=0.1, n_epochs=200, |
171 | 171 | image_shape=(batch_size, nkerns[0], 12, 12), |
172 | 172 | filter_shape=(nkerns[1], nkerns[0], 5, 5), poolsize=(2, 2)) |
173 | 173 |
|
174 | | - # the TanhLayer being fully-connected, it operates on 2D matrices of |
| 174 | + # the HiddenLayer being fully-connected, it operates on 2D matrices of |
175 | 175 | # shape (batch_size,num_pixels) (i.e matrix of rasterized images). |
176 | 176 | # This will generate a matrix of shape (20,32*4*4) = (20,512) |
177 | 177 | layer2_input = layer1.output.flatten(2) |
|
Collapse file
Copy file name to clipboardExpand all lines: code/mlp.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -107,7 +107,7 @@ class MLP(object): |
107 | 107 |
|
108 | 108 | A multilayer perceptron is a feedforward artificial neural network model |
109 | 109 | 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 |
111 | 111 | sigmoid function (defined here by a ``HiddenLayer`` class) while the |
112 | 112 | top layer is a softamx layer (defined here by a ``LogisticRegression`` |
113 | 113 | class). |
|