# NOT RUN {
library(ggplot2)
library(dplyr)
# Two class - a tibble is returned
lift_curve(two_class_example, truth, Class1)
# Use autoplot to visualize
autoplot(lift_curve(two_class_example, truth, Class1))
# Multiclass one-vs-all approach
# One curve per level
hpc_cv %>%
filter(Resample == "Fold01") %>%
lift_curve(obs, VF:L) %>%
autoplot()
# Same as above, but will all of the resamples
hpc_cv %>%
group_by(Resample) %>%
lift_curve(obs, VF:L) %>%
autoplot()
# }
Run the code above in your browser using DataCamp Workspace