diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-12-01 14:26:29 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-12-01 14:26:29 +0100 |
commit | 28fb739ac1c4296e66328b6a378c3cb092b5c82a (patch) | |
tree | fa59e50174229fd7ed1c68fbfa4fe1f176ccb2c1 /lib/model.py | |
parent | dfa508d0bddabd3e64ad86693b2c25537613bed8 (diff) |
model: Add MAPE export
Diffstat (limited to 'lib/model.py')
-rw-r--r-- | lib/model.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/model.py b/lib/model.py index 10e2928..f01ae5d 100644 --- a/lib/model.py +++ b/lib/model.py @@ -476,6 +476,10 @@ class AnalyticModel: ret[f"data/{name}/{attr_name}/{k}"] = v e_static = static_quality[name][attr_name] ret[f"error/static/{name}/{attr_name}/mae"] = (e_static["mae"], unit) + ret[f"error/static/{name}/{attr_name}/mape"] = ( + e_static["mape"], + r"\percent", + ) ret[f"error/static/{name}/{attr_name}/smape"] = ( e_static["smape"], r"\percent", @@ -491,6 +495,10 @@ class AnalyticModel: if lut_quality is not None: e_lut = lut_quality[name][attr_name] ret[f"error/lut/{name}/{attr_name}/mae"] = (e_lut["mae"], unit) + ret[f"error/lut/{name}/{attr_name}/mape"] = ( + e_lut["mape"], + r"\percent", + ) ret[f"error/lut/{name}/{attr_name}/smape"] = ( e_lut["smape"], r"\percent", @@ -505,6 +513,10 @@ class AnalyticModel: e_model = model_quality[name][attr_name] ret[f"error/model/{name}/{attr_name}/mae"] = (e_model["mae"], unit) + ret[f"error/model/{name}/{attr_name}/mape"] = ( + e_model["mape"], + r"\percent", + ) ret[f"error/model/{name}/{attr_name}/smape"] = ( e_model["smape"], r"\percent", |