Function to plot the ROC curve
1 | plotROC(prob, true, resolution = 1000)
|
input: prob: vector/array/data.frame...: containing the predicted probabilities from 'predict' function true: vector/array/data.frame...: indicating the true label; has to have the same length as prob resolution: int: search resolution, default set to 1000
output: A plot of the ROC curve
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.