1 / position of the target within the top k, or 0 if absent.
Examples
morie_gru4r_mrr(c(5L, 2L, 9L, 1L), target = 9L, kk = 3) # 1/3
#> [1] 0.3333333
1 / position of the target within the top k, or 0 if absent.
morie_gru4r_mrr(c(5L, 2L, 9L, 1L), target = 9L, kk = 3) # 1/3
#> [1] 0.3333333