Skip to content

Commit f2d3749

Browse files
author
Razvan Pascanu
committed
removed numpy_rng which I wasn't using anyhow
1 parent 978a1d2 commit f2d3749

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

code/SdA.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ def __init__(self, n_visible= 784, n_hidden= 500, corruption_level = 0.1,\
197197

198198
# create a Theano random generator that gives symbolic random values
199199
theano_rng = RandomStreams()
200-
# create a numpy random generator
201-
numpy_rng = numpy.random.RandomState()
202200

203201
if shared_W != None and shared_b != None :
204202
self.W = shared_W
@@ -407,7 +405,7 @@ def __init__(self, train_set_x, train_set_y, batch_size, n_ins,
407405

408406

409407

410-
def sgd_optimization_mnist( learning_rate=0.05, pretraining_epochs = 15, \
408+
def sgd_optimization_mnist( learning_rate=0.1, pretraining_epochs = 20, \
411409
pretrain_lr = 0.1, training_epochs = 1000, \
412410
dataset='mnist.pkl.gz'):
413411
"""

0 commit comments

Comments
 (0)