We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba89f58 commit 54911b2Copy full SHA for 54911b2
utils/helpers.py
@@ -54,8 +54,8 @@ def summarize_accuracy(self) -> dict:
54
def print_accuracy_metrics(self) -> dict:
55
accuracy_results = self.summarize_accuracy()
56
assert type(accuracy_results) is dict
57
- if len(accuracy_results) == 0:
58
- print_warning_message("Accuracy metrics not available.")
+ if len(accuracy_results) == 0 or None in accuracy_results.values():
+ print_warning_message("Accuracy metrics are unavailable.")
59
else:
60
max_len = 14
61
indent = 2 * " "
0 commit comments