import os import sys import time import numpy import theano import theano.tensor as T from theano.tensor.shared_randomstreams import RandomStreams from pprint import pprint from scipy.io import matlab import re import math from theano import shared from collections import OrderedDict #from my_pytable_FS_sulfur import * import random Method = sys.argv[1] thres = float(sys.argv[2]) if __name__ == '__main__': all_pos_prob= numpy.load("../results/prob_scores/"+Method+"/prob_y.dat") all_y_true= numpy.load("../results/prob_scores/"+Method+"/true_y.dat") if Method == 'FEATURE_SVM' or Method == 'Voxel_SVM': all_pos_prob=all_pos_prob[:,1] tp_total = 0 fp_total = 0 tn_total = 0 fn_total = 0 pred_pos = numpy.where(all_pos_prob>=thres) pred_neg = numpy.where(all_pos_prob