| auc_matrix | R Documentation |
Compute AUC from matrix labels
auc_matrix(y, prob, weights = NULL)
y |
Two-column finite nonnegative class masses (negative, positive); soft labels, counts, and zero-mass rows are supported. |
prob |
Finite numeric scores, one per row; values outside |
weights |
Optional finite nonnegative numeric row weights without recycling; NULL means unit weights. |
Weighted rank AUC with half credit for ties; NA with a warning if either effective class mass is zero.
Zhou et al. (2022). doi:10.1371/journal.pcbi.1009956
auc(), assess()
y <- cbind(c(1, 1, 0, 0), c(0, 0, 1, 1))
p <- c(0.2, 0.3, 0.7, 0.8)
auc_matrix(y, p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.