Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 26, 2024
1 parent e4d3463 commit e65c225
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_evaluation_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ def test_precision_recall_fscore__invalid_average(self, n_classes: int) -> None:
invalid_averages = ["invalid_average", 1, True, 0.01234]
for invalid_average in invalid_averages:
with pytest.raises(ValueError):
evaluation_metrics.precision_recall_fscore(confusion_matrix, average=invalid_average)
evaluation_metrics.precision_recall_fscore(
confusion_matrix, average=invalid_average
)

def test_precision_score(self, n_classes: int) -> None:
"""
Expand Down

0 comments on commit e65c225

Please sign in to comment.