diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-12-20 13:45:29 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-12-20 13:45:29 +0100 |
commit | 7ee09399e7cba10f693ec301961637a9f736750b (patch) | |
tree | 2e1ec11f14f876b16d4ca8e8919b8e2832375334 /lib/cli.py | |
parent | a49238ae1dc966a9d7b923ec23e14944cc7ab0f4 (diff) |
model quality table: roughly indicate well-fitting / badly fitting models
Diffstat (limited to 'lib/cli.py')
-rw-r--r-- | lib/cli.py | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -176,6 +176,20 @@ def model_quality_table(lut, model, static, model_info, xv_method=None): buf += format_quality_measures(result) else: buf += f"""{"----":>7s} """ + if type(model_info(key, attr)) is not StaticFunction: + if model[key][attr]["mae"] > static[key][attr]["mae"]: + buf += " :-(" + elif ( + model[key][attr]["mae"] <= 2 * lut[key][attr]["mae"] + and static[key][attr]["mae"] > 4 * lut[key][attr]["mae"] + ): + buf += " :-D" + elif ( + static[key][attr]["mae"] - model[key][attr]["mae"] + > model[key][attr]["mae"] - lut[key][attr]["mae"] + and static[key][attr]["mae"] > 1.1 * lut[key][attr]["mae"] + ): + buf += " :-)" print(buf) |