summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-06-10 17:01:27 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-06-10 17:01:27 +0200
commitb6cbc26212354963b719f81ef425fe30768f2584 (patch)
treeeeea9d4f54279d0b98c761f7b6a89d6eef2eea4b /lib
parentc6bd5614cb7a1453ddd1862ad17fb693c87f2e82 (diff)
splitinfo: sort keys
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cli.py b/lib/cli.py
index 36371f1..8baca9a 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -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}")