Skip to content

Commit

Permalink
Fix mrr unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
wangz10 committed Dec 5, 2023
1 parent 38d6203 commit 5a9e560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit-tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def test_gen_mrr_score():

metrics_opti = gen_mrr_score(ranking)

assert th.isclose(metrics['mrr'], metrics_opti['mrr']) # Default tolerance: 1e-08
assert th.isclose(metrics['mrr'], metrics_opti) # Default tolerance: 1e-08

def test_stream_dist_tensors_to_hdf5():
with tempfile.TemporaryDirectory() as tmpdirname:
Expand Down

0 comments on commit 5a9e560

Please sign in to comment.