Skip to content

Commit 070b2e2

Browse files
committed
fix minor latex typo in AveragePrecisionAtK
1 parent 1f15160 commit 070b2e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metrax/ranking_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AveragePrecisionAtK(clu_metrics.Average):
3636
Given the top :math:`K` recommendations, AP@K is calculated as:
3737
3838
.. math::
39-
AP@K = frac{1}{r}\sum_{k=1}^{K} \Precision@k * \rel(k)
39+
AP@K = \frac{1}{r} \sum_{k=1}^{K} Precision@k * rel(k) \\
4040
rel(k) =
4141
\begin{cases}
4242
1 & \text{if the item at rank } k \text{ is relevant} \\

0 commit comments

Comments
 (0)