col_auc_vec | R Documentation |
This is the vectorized version of col_auc
.
col_auc_vec(x, y, args = NULL)
x |
List, where each element is an input to |
y |
List, where each element is an input to |
args |
|
List, where each element is an output from col_auc
.
Change log:
0.1.0 Xiurui Zhu - Initiate the function.
col_auc
for the non-vectorized version.
if (require("MASS", quietly = TRUE) == TRUE) {
data(cats)
print(res_cpp <- col_auc_vec(list(cats[, 2L:3L]), list(cats[, 1L])))
# Validate with caTools::colAUC()
if (require("caTools", quietly = TRUE) == TRUE) {
print(res_r <- caTools::colAUC(cats[, 2L:3L], cats[, 1L]))
identical(res_cpp, list(res_r))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.