-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathplot_comparison.py
More file actions
26 lines (22 loc) · 867 Bytes
/
plot_comparison.py
File metadata and controls
26 lines (22 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import cPickle
import matplotlib.pyplot as plt
from viz import calculate_roc, ROC_plotter, add_curve
#RNN = cPickle.load( open('./GRU25/RNN.pkl', 'r'))
#CRNN = cPickle.load( open('./GRU25/CRNN.pkl' , 'r'))
#IP3D = cPickle.load( open('./GRU25/ip3d.pkl', 'r'))
bidirCRNN = cPickle.load( open('./BIDIR/CRNN.pkl' , 'r'))
num2 = cPickle.load( open('./CRNN.pkl' , 'r'))
#bidirRNN = cPickle.load( open('./BIDIR/RNN.pkl' , 'r'))
#CRNN['color'] = 'magenta'
bidirCRNN['color'] = 'purple'
#bidirRNN['color'] = 'cyan'
curves = {}
#curves['RNN'] = RNN
#curves['CRNN'] = CRNN
#curves['IP3D'] = IP3D
curves['Bidir. CRNN'] = bidirCRNN
curves['Most Recent'] = num2
#curves['Bidir. RNN'] = bidirRNN
print 'Plotting'
fg = ROC_plotter(curves, title=r'Impact Parameter Taggers', min_eff = 0.5, max_eff=1.0, ymax = 1000, logscale=True)
fg.savefig('./plots/comparison_bidirCRNNs.pdf')