# NOT RUN {
library(tidyselect)
data("two_class_example")
prob_cols <- levels(two_class_example$truth)
roc_auc(two_class_example, truth = truth, Class1)
# warning is issued here because 2 columns are selected:
roc_auc(two_class_example, truth, starts_with("Class"))
# passing options via a list and _not_ `...`
roc_auc(two_class_example, truth = "truth", Class1,
options = list(smooth = TRUE))
pr_auc(two_class_example, truth, prob_cols)
mnLogLoss(two_class_example, truth, starts_with("Class"))
# or
mnLogLoss(two_class_example, truth, !! prob_cols)
# }
Run the code above in your browser using DataLab