View source: R/EvaluationSummary.R
averagePrecision | R Documentation |
Calculate the average precision
averagePrecision(prediction)
prediction |
A prediction object |
Calculates the average precision from a predition object
The average precision value
prediction <- data.frame(
value = c(0.1, 0.2, 0.3, 0.4, 0.5),
outcomeCount = c(0, 1, 0, 1, 1)
)
averagePrecision(prediction)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.