# HG changeset patch # User Olivier Delalleau # Date 1243445193 14400 # Node ID c5ed7022054fd06c5db474acf3a58bc013c30ab8 # Parent d4e703a617baca96b209660374bc51b0d24672aa Simplified code now that it is not a unittest anymore diff -r d4e703a617ba -r c5ed7022054f pylearn/sandbox/check_speed.py --- 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() -