Compute the accuracy curve.
This function computes the accuracy curve required for
the auc
function and the plot
function.
accuracy(predictions, labels, perc.rank = TRUE)
predictions |
A numeric vector of classification probabilities (confidences, scores) of the positive event. |
labels |
A factor of observed class labels (responses) with the only allowed values {0,1}. |
perc.rank |
A logical. If TRUE (default) the percentile rank of the predictions is used. |
A list containing the following elements:
cutoffs |
A numeric vector of threshold values |
measure |
A numeric vector of accuracy values corresponding to the threshold values |
Authors: Michel Ballings and Dirk Van den Poel, Maintainer: Michel.Ballings@UGent.be
Ballings, M., Van den Poel, D., Threshold Independent Performance Measures for Probabilistic Classifcation Algorithms, Forthcoming.
sensitivity
, specificity
,
accuracy
, roc
,
auc
, plot
data(churn) accuracy(churn$predictions,churn$labels)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.