We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f15160 commit 070b2e2Copy full SHA for 070b2e2
src/metrax/ranking_metrics.py
@@ -36,7 +36,7 @@ class AveragePrecisionAtK(clu_metrics.Average):
36
Given the top :math:`K` recommendations, AP@K is calculated as:
37
38
.. math::
39
- AP@K = frac{1}{r}\sum_{k=1}^{K} \Precision@k * \rel(k)
+ AP@K = \frac{1}{r} \sum_{k=1}^{K} Precision@k * rel(k) \\
40
rel(k) =
41
\begin{cases}
42
1 & \text{if the item at rank } k \text{ is relevant} \\
0 commit comments