powered by
Based on: https://blog.revolutionanalytics.com/2016/08/roc-curves-in-two-lines-of-code.html
build_ROC_curve(modelPredictions, yValues, ..., na.rm = FALSE, yTarget = TRUE)
the ROC graph of Score (model score), Sensitivity, and Specificity. Guaranteed to have the (0, 0) and (1, 1) (1-Specificity,Sensitivity) endpoints.
numeric predictions (not empty)
truth values (not empty, same length as model predictions)
force later arguments to bind by name.
logical, if TRUE remove NA values.
value considered to be positive.
sigr::build_ROC_curve(1:4, c(TRUE,FALSE,TRUE,TRUE))
Run the code above in your browser using DataLab