Skip to content

Commit

Permalink
Cast acc metrics to float
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-grzybek-ampere authored Jan 30, 2024
1 parent 298b8aa commit 0e70de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ def print_accuracy_metrics(self) -> dict:
print(f"\n{indent}ACCURACY")
for metric in accuracy_results.keys():
print(f"{3 * indent}{metric}{(max_len - len(metric)) * ' '}{3 * indent}" +
"= {:>7.3f}".format(accuracy_results[metric]))
"= {:>7.3f}".format(float(accuracy_results[metric])))
return accuracy_results

0 comments on commit 0e70de1

Please sign in to comment.