Multiple Receiver Operating Characteristic (ROC) curvesPlot
each arg should contain pairs of data and labels The data can be specified in 3 ways:
- 1 argument:
- sdt_metrics.SDT object
- 2 arguments:
- pHI pFA
- 4 arguments:
- hit count miss count correction rejection count false alarm count
labels should be strings and could contain latex
metric: dprime, aprime, amzs (default is dprime)
isopleths: None, beta, c, bppd, bmz
fname: outputname
dpi: resolution of plot
>>> from sdt_metrics.plotting import mult_roc_plot
>>> sdt_obj = SDT(HI=116, MI=30, CR=323, FA=80)
>>> sdt_probs = (.97,.22)
>>> sdt_counts = (76,67,80,65)
>>> mult_roc_plot((sdt_obj, 'from SDT object'),
(sdt_probs, 'from probs'),
(sdt_counts, 'from counts'),
isopleths='c',
fname='mult_roc_example.png')
>>> mult_roc_plot(((.91,.40), 'A'),
((.76,.56), 'B'),
((.84,.67), 'C'),
metric='amzs',
isopleths='bppd',
fname='mult_roc_example02.png')