Description Usage Arguments Details References Examples
Calculates Area Under the ROC Curve
1 |
preds |
A vector of prediction values |
actuals |
A vector of actuals values (numeric or ordered factor) |
returnDT |
If TRUE, a data.table of (FalsePositiveRate, TruePositiveRate) pairs is returned, otherwise AUC ROC score is returned |
If returnDT=FALSE
, returns Area Under the ROC Curve.If returnDT=TRUE
, returns a data.table object with
False Positive Rate and True Positive Rate for plotting the ROC curve.
https://en.wikipedia.org/wiki/Receiver_operating_characteristic#Area_under_the_curve
1 2 3 4 5 |
[1] 0.875
Pred CountFalse CountTrue CumulativeFPR CumulativeTPR AdditionalArea
1: 0.9 0 1 0.0 0.5 0.000
2: 0.3 1 1 0.5 1.0 0.375
3: 0.1 1 0 1.0 1.0 0.500
CumulativeArea
1: 0.000
2: 0.375
3: 0.875
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.