From 588bd27201a0a9d349b285a0ebd2c78ffcc40889 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 13 May 2022 09:40:10 +0200 Subject: analyze-kconfig: sort keys in model error output --- bin/analyze-kconfig.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') 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}%") -- cgit v1.2.3