diff deep/convolutional_dae/run_exp.py @ 333:69109e41983e

Adapt parameters (especially the number of epochs) to P07
author Arnaud Bergeron <abergeron@gmail.com>
date Wed, 14 Apr 2010 16:06:04 -0400
parents 6eab220a7d70
children 01445a75c702
line wrap: on
line diff
--- a/deep/convolutional_dae/run_exp.py	Wed Apr 14 11:51:18 2010 -0400
+++ b/deep/convolutional_dae/run_exp.py	Wed Apr 14 16:06:04 2010 -0400
@@ -1,6 +1,7 @@
 from ift6266.deep.convolutional_dae.scdae import *
 
 class dumb(object):
+    COMPLETE = None
     def save(self):
         pass
 
@@ -18,7 +19,7 @@
     # TODO: maybe record pynnet version?
     channel.save()
 
-    dset = datasets.nist_all()
+    dset = datasets.nist_P07()
 
     nfilts = []
     if state.nfilts1 != 0:
@@ -61,7 +62,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,