Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit a476c42

Browse files
committed
Update atol on precision at k test.
1 parent 9207f48 commit a476c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/retrieval_metrics/test_precision_at_k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def test_compute(avg, expected):
3131
rm = PrecisionAtK(k=3, average=avg)
3232

3333
precision = rm.compute(query_labels=query_labels, match_mask=match_mask)
34-
np.testing.assert_allclose(precision, expected)
34+
np.testing.assert_allclose(precision, expected, atol=1e-05)

0 commit comments

Comments
 (0)