summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-05-13 09:40:10 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-05-13 09:40:10 +0200
commit588bd27201a0a9d349b285a0ebd2c78ffcc40889 (patch)
treecc724051c0d4a6ae140e66c532c2dffe1c0ca960
parent6463549eeae411b37904cd2324a18bee2acee693 (diff)
analyze-kconfig: sort keys in model error output
-rwxr-xr-xbin/analyze-kconfig.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py
index e0f50a5..8aa8c93 100755
--- a/bin/analyze-kconfig.py
+++ b/bin/analyze-kconfig.py
@@ -298,8 +298,10 @@ def main():
)
print("Model Error on Training Data:")
- for name in model.names:
- for attribute, error in analytic_quality[name].items():
+ for name in sorted(model.names):
+ for attribute, error in sorted(
+ analytic_quality[name].items(), key=lambda kv: kv[0]
+ ):
mae = error["mae"]
smape = error["smape"]
print(f"{name:15s} {attribute:20s} ± {mae:10.2} / {smape:5.1f}%")