From f1aad98a84c43bb3dc9a67331c85bdd0a77419d0 Mon Sep 17 00:00:00 2001 From: Chunk Date: Mon, 20 Apr 2015 15:33:42 +0800 Subject: [PATCH] staged. --- test/test_model.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test_model.py b/test/test_model.py index bee7741..b4e471f 100755 --- a/test/test_model.py +++ b/test/test_model.py @@ -151,10 +151,11 @@ def test_SVM_ILSVRC_S(): def test_THEANO_crop(): - # timer.mark() - # dilc = ILSVRC.DataILSVRC(base_dir='/data/hadoop/ImageNet/ILSVRC/ILSVRC2013_DET_val', category='Test_crop_pil') - # X, Y = dilc.load_data(mode='local', feattype='coef') - # timer.report() + timer.mark() + dilc = ILSVRC.DataILSVRC(base_dir='/data/hadoop/ImageNet/ILSVRC/ILSVRC2013_DET_val', category='Test_crop_pil') + X, Y = dilc.load_data(mode='local', feattype='coef') + timer.report() + # X_train, X_test, Y_train, Y_test = cross_validation.train_test_split(X, Y, test_size=0.2, random_state=0) # with open(os.path.join(package_dir,'../res/','ils_crop.pkl'),'wb') as f: # cPickle.dump([(X_train,Y_train),(X_test,Y_test)], f) -- libgit2 0.21.2