diff options
-rw-r--r-- | lib/functions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/functions.py b/lib/functions.py index aeaf48e..c81c3e3 100644 --- a/lib/functions.py +++ b/lib/functions.py @@ -525,9 +525,9 @@ class CARTFunction(SKLearnRegressionFunction): # child value if left_child != self.leaf_id: - sub_data["child"]["<="] = self.recurse_(tree, left_child, depth=depth + 1) + sub_data["child"]["left"] = self.recurse_(tree, left_child, depth=depth + 1) if right_child != self.leaf_id: - sub_data["child"][">"] = self.recurse_(tree, right_child, depth=depth + 1) + sub_data["child"]["right"] = self.recurse_(tree, right_child, depth=depth + 1) return sub_data |