RDocumentation
Moon
Learn R
Search all packages and functions
Metrics (version 0.1.2)
apk: Compute the average precision at k
Description
This function computes the average precision at k between two sequences
Usage
apk(k, actual, predicted)
Arguments
k
max length of predicted sequence
actual
ground truth set (vector)
predicted
predicted sequence (vector)