oa::ml::metric::roc_auc
Binary ROC AUC from positive-class scores against binary labels. Scores and labels are read back and ranked on the host with the Mann-Whitney formulation (tied scores share average rank), so the value is exactly the probability that a random positive outranks a random negative. This is an evaluation-side host metric, not a capture-safe device op. Errors Returns an error when scores is not F32, shapes disagree, labels are not 0/1, or one class is absent.
Function Documentation
Binary ROC AUC from positive-class scores against binary labels. Scores and labels are read back and ranked on the host with the Mann-Whitney formulation (tied scores share average rank), so the value is exactly the probability that a random positive outranks a random negative. This is an evaluation-side host metric, not a capture-safe device op. Errors Returns an error when scores is not F32, shapes disagree, labels are not 0/1, or one class is absent.