Skip to content

Commit

Permalink
Update atol on precision at k test.
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvallis committed Jan 21, 2022
1 parent 9207f48 commit a476c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/retrieval_metrics/test_precision_at_k.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def test_compute(avg, expected):
rm = PrecisionAtK(k=3, average=avg)

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

0 comments on commit a476c42

Please sign in to comment.