changeset 569:eaf4cbd20017

small fix to test_aa
author Olivier Breuleux <breuleuo@iro.umontreal.ca>
date Wed, 03 Dec 2008 22:28:17 -0500
parents 1f036d934ad9
children 0a27ba2157b6
files pylearn/algorithms/tests/test_aa.py
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/algorithms/tests/test_aa.py	Wed Dec 03 22:26:31 2008 -0500
+++ b/pylearn/algorithms/tests/test_aa.py	Wed Dec 03 22:28:17 2008 -0500
@@ -1,6 +1,6 @@
 #from __future__ import absolute_imports
 
-from pylearn import algorithms as models
+from pylearn.algorithms import aa as models
 import theano
 import numpy
 import time
@@ -29,6 +29,14 @@
 
 if __name__ == '__main__':
     numpy.random.seed(10)
+    print 'sanity check:'
+    t1 = test_train('SANITY_CHECK')
+#     t1 = test_train([theano.Mode('c|py', 'fast_compile'),
+#                      theano.Mode('c|py', 'fast_run')])
+    print 'time:',t1
+    print
+
+    numpy.random.seed(10)
     print 'optimized:'
     t1 = test_train(theano.Mode('c|py', 'fast_run'))
     print 'time:',t1