Learn R Programming

RFmarkerDetector (version 1.0.1)

getAvgAUC: Computing the average AUC

Description

This function computes the average AUC of the ROC curves obtained from a cross-validation procedure

Usage

getAvgAUC(predictions, labels)

Arguments

predictions
a vector, matrix, list, or data frame containing the predictions.
labels
a vector, matrix, list, or data frame containing the true class labels. It must have the same dimensions as predictions

Value

the average AUC value

Examples

Run this code
## load a simple dataset with the vectors of the predictions and the labels resulting from a CV 
data(simpleData)
avg_auc <- getAvgAUC(simpleData$predictions, simpleData$labels)

Run the code above in your browser using DataLab