# HG changeset patch # User Olivier Breuleux # Date 1228361297 18000 # Node ID eaf4cbd20017ae396126cd5282544169b5a87e8a # Parent 1f036d934ad9e302187dec6487d5851b6b596017 small fix to test_aa diff -r 1f036d934ad9 -r eaf4cbd20017 pylearn/algorithms/tests/test_aa.py --- 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