testor1.py
1.14 KB
__author__ = 'hadoop'
import sys
from imager.test import test_jpeg, test_steg, test_feat, test_data, test_model
if __name__ == '__main__':
input_info = sys.argv[1]
(type_name,table_name, dst_dir) = input_info.split(',')
test_data.export_hbase_to_dir(type_name = type_name,table_name = table_name, dst_dir = dst_dir)
pass
#test_data.test_ILSVRC(category='Test_100')
#test_data.test_ILSVRC_S_LOCAL(category)
#test_data.test_ILSVRC_S_SPARK(category='Train_100', label_file = 'Train_100.csv')
#test_data.train_ILSVRC_S_SPARK(category='Train_100', label_file = 'Train_100.csv', model_path = 'res/svm_sklearn1.model')
#test_data.take_feat_ILSVRC_S_SPARK(category='Train_100',label_file = 'Train_100.csv')
#test_data.train_ILSVRC(category='Train_100',model_path = 'res/svm_sklearn1.model')
# model
# test_model.test_SVM_ILSVRC(category)
#test_model.test_SVM_ILSVRC_S(category)
#test_model.test_SVM_ILSVRC_SPARK(category='Train_100', label_file = 'Train_100.csv')
# analysis
# test_data.test_ILSVRC_S_ANALYSIS(category)
# test_data.test_ILSVRC_S_ANALYSIS2(category,tablename='MSPIDER')
pass