Description Usage Arguments Value Examples
Calculates the Average Precision at k
1 | Evaluation.Precision.at.k(EstimatedRank, RelevanceLevel, k)
|
EstimatedRank |
estimated ranking |
RelevanceLevel |
score for the document |
k |
positive that we want to run this algorithm for |
The AP at k for this estimation and relevance level
1 2 3 | EstimatedRank <- scramble(1:10)
RelevanceLevel <- runif(10)
Evaluation.Precision.at.k(EstimatedRank, RelevanceLevel, 5)
|
[1] 0.4727986
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.