diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-05-13 09:40:10 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-05-13 09:40:10 +0200 |
commit | 588bd27201a0a9d349b285a0ebd2c78ffcc40889 (patch) | |
tree | cc724051c0d4a6ae140e66c532c2dffe1c0ca960 | |
parent | 6463549eeae411b37904cd2324a18bee2acee693 (diff) |
analyze-kconfig: sort keys in model error output
-rwxr-xr-x | bin/analyze-kconfig.py | 6 |
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}%") |