pylimma.au_roc

pylimma.au_roc(truth, stat=None)[source]

Area under the empirical ROC curve.

Mirrors R’s limma::auROC(truth, stat=NULL). truth is a logical / integer vector of test outcomes. When stat is supplied, cases are sorted by stat in decreasing order (ties resolved by averaging sensitivity). When stat is None the truth order is taken as the ranking.

Returns NaN when truth contains any NA / NaN, when truth is constant, or when stat contains any NA.

Return type:

float