changeset 730:c5ed7022054f

Simplified code now that it is not a unittest anymore
author Olivier Delalleau <delallea@iro>
date Wed, 27 May 2009 13:26:33 -0400
parents d4e703a617ba
children 0344ac148585
files pylearn/sandbox/check_speed.py
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/sandbox/check_speed.py	Wed May 27 13:25:20 2009 -0400
+++ b/pylearn/sandbox/check_speed.py	Wed May 27 13:26:33 2009 -0400
@@ -63,16 +63,10 @@
     f_ds_mb1(ds,1000)
     f_ds_mb1(ds,10000)
 
-# Subset of tests when run by nosetests.
-def run_test():
+def run_full():
     a2 = numpy.random.rand(100000,400)
     ds1 = ArrayDataSet(a2,{'all':slice(0,a2.shape[1],1)})
     run(a2, ds1)
-    return a2, ds1
-
-# Full set of tests when run from command line.
-def run_full():
-    a2, ds1 = run_test()
     a1 = numpy.random.rand(100000,40)
     ds4 = ArrayDataSet(a1,LookupList(["f"+str(x)for x in range(a1.shape[1])],
                                      range(a1.shape[1])))
@@ -86,4 +80,3 @@
 
 if __name__=='__main__':
     run_full()
-