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 Apr 9, 2024
1 parent 7160460 commit 9ae052f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moralization/transformers_model_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ def compute_metrics(self, eval_preds: tuple) -> Dict:
"recall": all_metrics["overall_recall"],
"f1": all_metrics["overall_f1"],
"accuracy": all_metrics["overall_accuracy"],
"classification report": classification_report(y_true=true_labels, y_pred=true_predictions),
"classification report": classification_report(
y_true=true_labels, y_pred=true_predictions
),
}

def _set_id2label(self) -> None:
Expand Down

0 comments on commit 9ae052f

Please sign in to comment.