Update analysis and report mysql

This commit is contained in:
2021-03-05 10:41:18 +01:00
parent 116db3f528
commit a075e5e95a
3 changed files with 46 additions and 31 deletions

View File

@@ -54,7 +54,7 @@ def report_header(exclude_params):
def report_line(record, agg):
accuracy = record[5]
expected = record[10]
expected = record[13]
if accuracy < expected:
agg["worse"] += 1
sign = "-"
@@ -84,7 +84,7 @@ def report_footer(agg):
TextColor.MAGENTA + f"we have equal results {agg['equal']:2d} times"
)
color = TextColor.LINE1
for item in ["stree", "bagging", "adaBoost", "odte"]:
for item in models:
print(color + f"{item:10s} used {agg[item]:2d} times")
color = (
TextColor.LINE2 if color == TextColor.LINE1 else TextColor.LINE1