Mercurial > ift6266
diff deep/convolutional_dae/run_exp.py @ 380:0473b799d449
merge
author | Yoshua Bengio <bengioy@iro.umontreal.ca> |
---|---|
date | Mon, 26 Apr 2010 14:56:34 -0400 |
parents | 01445a75c702 |
children |
line wrap: on
line diff
--- a/deep/convolutional_dae/run_exp.py Mon Apr 26 14:56:06 2010 -0400 +++ b/deep/convolutional_dae/run_exp.py Mon Apr 26 14:56:34 2010 -0400 @@ -1,6 +1,7 @@ from ift6266.deep.convolutional_dae.scdae import * class dumb(object): + COMPLETE = None def save(self): pass @@ -18,19 +19,23 @@ # TODO: maybe record pynnet version? channel.save() - dset = datasets.nist_all() + dset = datasets.nist_P07() nfilts = [] + fsizes = [] if state.nfilts1 != 0: nfilts.append(state.nfilts1) + fsizes.append((5,5)) if state.nfilts2 != 0: nfilts.append(state.nfilts2) + fsizes.append((3,3)) if state.nfilts3 != 0: nfilts.append(state.nfilts3) + fsizes.append((3,3)) if state.nfilts4 != 0: nfilts.append(state.nfilts4) + fsizes.append((2,2)) - fsizes = [(5,5)]*len(nfilts) subs = [(2,2)]*len(nfilts) noise = [state.noise]*len(nfilts) @@ -61,7 +66,7 @@ print "training ..." sys.stdout.flush() best_valid, test_score = sgd_opt(train, valid, test, - training_epochs=1000000, patience=2500, + training_epochs=800000, patience=2000, patience_increase=2., improvement_threshold=0.995, validation_frequency=500,