Skip to content

Commit

Permalink
fixed metric test
Browse files Browse the repository at this point in the history
  • Loading branch information
hzavadil98 committed Feb 5, 2025
1 parent 0ebaced commit 46798d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ def test_accuracy():

accuracy_score = accuracy(y_true, y_pred)

assert accuracy_score.allclose(torch.tensor(0.8), atol=1e-5), (
assert (torch.abs(torch.tensor(accuracy_score - 0.8)) < 1e-5), (
f"Accuracy Score: {accuracy_score.item()}"
)

0 comments on commit 46798d2

Please sign in to comment.