Rdocumentation
powered by
Learn R Programming
Metrics (version 0.1.2)
mapk: Compute the mean average precision at k
Description
This function computes the mean average precision at k of two lists of sequences.
Usage
mapk(k, actual, predicted)
Arguments
k
max length of predicted sequence
actual
list of ground truth sets (vectors)
predicted
list of predicted sequences (vectors)