averagePrecision {PatientLevelPrediction} | R Documentation |
Calculate the average precision
Description
Calculate the average precision
Usage
averagePrecision(prediction)
Arguments
prediction |
A prediction object |
Details
Calculates the average precision from a predition object
Value
The average precision value
Examples
prediction <- data.frame(
value = c(0.1, 0.2, 0.3, 0.4, 0.5),
outcomeCount = c(0, 1, 0, 1, 1)
)
averagePrecision(prediction)
[Package PatientLevelPrediction version 6.4.1 Index]