Skip to content

Commit f4ef9e5

Browse files
committed
minor fix MLP
1 parent c02375d commit f4ef9e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/MLP.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, input, label, n_in, n_hidden, n_out, rng=None):
1616
if rng is None:
1717
rng = numpy.random.RandomState(1234)
1818

19-
# construct hidden_layer (tanh, sigmoid, etc...)
19+
# construct hidden_layer (tanh or sigmoid so far)
2020
self.hidden_layer = HiddenLayer(input=self.x,
2121
n_in=n_in,
2222
n_out=n_hidden,
@@ -31,8 +31,6 @@ def __init__(self, input, label, n_in, n_hidden, n_out, rng=None):
3131

3232
def train(self):
3333
layer_input = self.hidden_layer.forward()
34-
# print self.hidden_layer.W
35-
3634
self.log_layer.train(input=layer_input)
3735
self.hidden_layer.backward(prev_layer=self.log_layer)
3836

0 commit comments

Comments
 (0)