Skip to content

Commit 323b6e1

Browse files
author
Yusuke Sugomori
committed
SdA.py
1 parent ebc839f commit 323b6e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SdA.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def predict(self, x):
116116

117117
for i in xrange(self.n_layers):
118118
sigmoid_layer = self.sigmoid_layers[i]
119-
# rbm_layer = self.rbm_layers[i]
120119
layer_input = sigmoid_layer.output(input=layer_input)
121120

122121
out = self.log_layer.predict(layer_input)
@@ -153,7 +152,7 @@ def test_SdA(pretrain_lr=0.1, pretraining_epochs=1000, corruption_level=0.3, \
153152

154153
# construct SdA
155154
sda = SdA(input=x, label=y, \
156-
n_ins=20, hidden_layer_sizes=[10, 10], n_outs=2, numpy_rng=rng)
155+
n_ins=20, hidden_layer_sizes=[15, 15], n_outs=2, numpy_rng=rng)
157156

158157
# pre-training
159158
sda.pretrain(lr=pretrain_lr, corruption_level=corruption_level, epochs=pretraining_epochs)

0 commit comments

Comments
 (0)