Skip to content

Commit d3ab267

Browse files
committed
added comment.
1 parent d7ea6c2 commit d3ab267

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

code/mlp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
7"""
22
This tutorial introduces the multilayer perceptron using Theano.
33
44
A multilayer perceptron is a logistic regressor where
@@ -69,6 +69,7 @@ def __init__(self, rng, input, n_in, n_out, activation = T.tanh):
6969
# For example, results presented in [Xavier10] suggest that you
7070
# should use 4 times larger initial weights for sigmoid
7171
# compared to tanh
72+
# We have no info for other function, so we use the same as tanh.
7273
W_values = numpy.asarray( rng.uniform(
7374
low = - numpy.sqrt(6./(n_in+n_out)),
7475
high = numpy.sqrt(6./(n_in+n_out)),

doc/mlp.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ both upward (activations flowing from inputs to outputs) and backward
161161
# For example, results presented in [Xavier10]_ suggest that you
162162
# should use 4 times larger initial weights for sigmoid
163163
# compared to tanh
164+
# We have no info for other function, so we use the same as tanh.
164165
W_values = numpy.asarray( rng.uniform(
165166
low = - numpy.sqrt(6./(n_in+n_out)),
166167
high = numpy.sqrt(6./(n_in+n_out)),

0 commit comments

Comments
 (0)