Skip to content

Commit

Permalink
Fix bad escpae
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Feb 12, 2022
1 parent c5ce995 commit 7826da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lenskit/metrics/topn.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def recip_rank(recs, truth, k=None):
"""
Compute the reciprocal rank of the first relevant item in a list of recommendations.
Let :math:`\\kappa` denote the 1-based rank of the first relevant item in :math:`L`,
with :math:`\\kappa=\infty` if none of the first :math:`k` items in :math:`L` are relevant;
with :math:`\\kappa=\\infty` if none of the first :math:`k` items in :math:`L` are relevant;
then the reciprocal rank is :math:`1 / \\kappa`. If no elements are relevant, the reciprocal
rank is therefore 0.
Expand Down

0 comments on commit 7826da4

Please sign in to comment.