예제 #1
0
def roc_plot(cvpairs, **kwargs):
    xs,ys = cv.roc(cvpairs) 
    auroc = cv.auroc(xs,ys)
    kwargs['label'] = kwargs.get('label','') + ' %.3f' % auroc
    plot(xs, ys, **kwargs)
    plot([0,xs[-1]], [0,ys[-1]], 'k--')
예제 #2
0
def auroc(gold_cxs, cxppis):
    cxppis, ntest_pos = tested_ppis(gold_cxs, cxppis)
    xs,ys = cv.roc(cxppis) 
    return cv.auroc(xs,ys)