Better summary table

This commit is contained in:
2021-04-02 16:24:31 +02:00
parent 01e725a93e
commit a23bae6b52

View File

@@ -176,13 +176,16 @@ def report_line(line):
def report_footer(agg):
length = sum(lengths) + len(lengths) - 1
print("-" * length)
color = TextColor.LINE1
color = TextColor.LINE2
print(color + "|{0:15s}|{1:6s}|".format("Classifier", "# Best"))
print(color + "=" * 24)
for item in models:
print(color + f"{item:10s} ", end="")
print(color + f"best of models {agg[item]['best']:2d} times")
print(color + f"|{item:15s}", end="|")
print(color + f"{agg[item]['best']:6d}|")
color = (
TextColor.LINE2 if color == TextColor.LINE1 else TextColor.LINE1
)
print("-" * 24)
(experiment, model_type, csv_output, tex_output, compare) = parse_arguments()