| Title: | Fast AUC Computation |
|---|---|
| Description: | Fast calculation of Area Under Curve (AUC) metric of a Receiver Operating Characteristic (ROC) curve, using the algorithm of Fawcett (2006) <doi:10.1016/j.patrec.2005.10.010>. Therefore it is appropriate for large-scale AUC metric calculations. |
| Authors: | Christos Adam [aut, cre] (ORCID: <https://orcid.org/0009-0003-3244-7034>) |
| Maintainer: | Christos Adam <[email protected]> |
| License: | GPL-3 |
| Version: | 0.1.3 |
| Built: | 2026-05-26 09:36:21 UTC |
| Source: | https://github.com/cadam00/lightauc |
Fast and memory efficient AUC computation.
lightAUC(probs, actuals, parallel = FALSE, cores = 2)lightAUC(probs, actuals, parallel = FALSE, cores = 2)
probs |
|
actuals |
|
parallel |
|
cores |
|
Binary AUC computation according to Fawcett (2006) doi:10.1016/j.patrec.2005.10.010.
numeric value representing the AUC metric.
Fawcett, T. (2006). An introduction to ROC analysis. Pattern Recognition Letters, 27(8), 861–874. doi:10.1016/j.patrec.2005.10.010
probs <- c(1, 0.4, 0.8) actuals <- c(0, 0, 1) lightAUC(probs, actuals) probs <- c(1, 0.4, 0.8) actuals <- c(FALSE, FALSE, TRUE) lightAUC(probs, actuals) probs <- c(1, 0.4, 0.8) actuals <- c(0, 0, 1) lightAUC(probs, actuals, parallel = TRUE, cores = 2L)probs <- c(1, 0.4, 0.8) actuals <- c(0, 0, 1) lightAUC(probs, actuals) probs <- c(1, 0.4, 0.8) actuals <- c(FALSE, FALSE, TRUE) lightAUC(probs, actuals) probs <- c(1, 0.4, 0.8) actuals <- c(0, 0, 1) lightAUC(probs, actuals, parallel = TRUE, cores = 2L)