changeset 816:d1e6c36df023

save daa input groups
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Mon, 17 Aug 2009 19:54:35 -0400
parents 4a52878d1ddc
children db2c26a2c97c
files pylearn/algorithms/sandbox/DAA_inputs_groups.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Mon Aug 17 15:40:57 2009 -0400
+++ b/pylearn/algorithms/sandbox/DAA_inputs_groups.py	Mon Aug 17 19:54:35 2009 -0400
@@ -11,6 +11,8 @@
 from pylearn.algorithms.logistic_regression import LogRegN
 import pylearn.algorithms.cost
 
+import time
+
 from pylearn.io import filetensor
 import os
 
@@ -27,6 +29,7 @@
             writebool = True
         except:
             print 'save model error'
+            time.sleep((numpy.random.randint(10)+2)*10)
 
 def load_mat(fname, save_dir=''):
     print 'loading ndarray from file: ', save_dir + fname