roc_plot | R Documentation |
Returns a ggplot of a ROC curve from prediction and target vectors. These are partitioned by the argument
train
into two separate curves so that differences between train and test data can be seen. AUC for each
is printed. Functions from ROCR are used.
roc_plot(pred, target, train, test = NULL)
pred |
A vector of prediction probabilities. |
target |
A vector of outcome classes corresponding to |
train |
A vector of indices indicating which predictions are "training" data. |
test |
Optional vector of indices indicating which predictions are "test" data. Defaults to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.