col_auc_vec {RcppColMetric} | R Documentation |
Vectorized version of function col_auc
Description
This is the vectorized version of col_auc
.
Usage
col_auc_vec(x, y, args = NULL)
Arguments
x |
List, where each element is an input to |
y |
List, where each element is an input to |
args |
|
Value
List, where each element is an output from col_auc
.
Note
Change log:
0.1.0 Xiurui Zhu - Initiate the function.
See Also
col_auc
for the non-vectorized version.
Examples
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))
}
}
[Package RcppColMetric version 0.1.0 Index]