Skip to content

Default inner_max_depth to None (#68) - #88

Merged
upadhyan merged 1 commit into
mainfrom
fix/68-inner-max-depth-default
Oct 16, 2026
Merged

upadhyan merged 1 commit into
mainfrom
fix/68-inner-max-depth-default

Conversation

@upadhyan

Copy link
Copy Markdown
Collaborator

Changes the default inner_max_depth from 3 to None in SGTClassifier, SGTRegressor and the random SG forests, so inner_max_leaf_nodes=8 controls inner tree size (best-first growth). Docstrings explain how the two limits interact. Adds tests/test_inner_defaults.py showing that a default inner tree reaches depth 7 with 8 bins.

Behaviour change: fitted trees change for anyone using the defaults.

Fixes #68

…r tree size

The old default inner_max_depth=3 capped inner trees at 8 leaves, so the
default inner_max_leaf_nodes=8 never had an effect. Behaviour change:
fitted trees change for users relying on the defaults.

Fixes #68
@upadhyan
upadhyan merged commit 3e0b97b into main Oct 16, 2026
16 checks passed
@upadhyan
upadhyan deleted the fix/68-inner-max-depth-default branch October 16, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default inner_max_depth=3 makes inner_max_leaf_nodes ineffective; default to None

1 participant