diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-06-10 17:01:27 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-06-10 17:01:27 +0200 |
commit | b6cbc26212354963b719f81ef425fe30768f2584 (patch) | |
tree | eeea9d4f54279d0b98c761f7b6a89d6eef2eea4b /lib | |
parent | c6bd5614cb7a1453ddd1862ad17fb693c87f2e82 (diff) |
splitinfo: sort keys
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cli.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -160,7 +160,7 @@ def _print_cartinfo(prefix, model): def print_splitinfo(info, prefix=""): if type(info) is df.SplitFunction: - for k, v in info.child.items(): + for k, v in sorted(info.child.items()): print_splitinfo(v, f"{prefix} {info.param_name}={k}") elif type(info) is df.ScalarSplitFunction: print_splitinfo(info.child_le, f"{prefix} {info.param_name}≤{info.threshold}") |