| lightAUC | R Documentation |
Fast and memory efficient AUC computation.
lightAUC(probs, actuals, parallel = FALSE, cores = 2)
probs |
|
actuals |
|
parallel |
|
cores |
|
Binary AUC computation according to Fawcett (2006) \Sexpr[results=rd]{tools:::Rd_expr_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. \Sexpr[results=rd]{tools:::Rd_expr_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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.