Description Usage Arguments Details See Also Examples
mapk
computes the mean average precision at k for a set of predictions, in
the context of information retrieval problems.
1 | mapk(k, actual, predicted)
|
k |
The number of elements of |
actual |
A list of vectors, where each vector represents a ground truth vector of relevant documents. In each vector, the elements can be numeric or character values, and the order of the elements does not matter. |
predicted |
A list of vectors, where each vector represents the predicted vector
of retrieved documents for the corresponding element of |
mapk
evaluates apk
for each pair of elements from actual
and
predicted
.
1 2 3 4 5 6 7 |
[1] 0.3333333
[1] 0.5648148
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.