Skip to content

Commit

Permalink
Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminastrand committed Nov 22, 2024
1 parent 7050bdc commit eb8592a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/monai-2D-mednist/client/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ def validate(in_model_path, out_json_path, data_path=None, client_settings_path=

# JSON schema
report.update({"test_accuracy": accuracy_score(y_true, y_pred), "test_f1_score": f1_score(y_true, y_pred, average="macro")})
for r in report:
print(r, ": ", report[r])

for key, value in report.items():
print(f"{key}: {value}")

# Save JSON
save_metrics(report, out_json_path)
Expand Down

0 comments on commit eb8592a

Please sign in to comment.