You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clarify how splits are selected in DecisionTree when using a random splitter #33568
The current documentation for the splitter parameter in DecisionTree-based estimators is ambiguous when splitter='random'. It’s unclear how the threshold is chosen
Suggest a potential alternative/fix
Please add to the documentation something like:
When 'random', the tree first selects a random feature, then computes the minimum and maximum values of that feature, and finally chooses a split threshold randomly from a uniform distribution between these bounds.
Documentation reference (DTClassifier, but also applies to other tree-based classes documentation):
I'd like to work on this - I've reviewed the splitter behavior and will submit a PR with updated wording for DecisionTreeClassifier, DecisionTreeRegressor, and the Extra Trees variants
Activity
AutoHmn13 commentedon Mar 18, 2026
I'd like to work on this - I've reviewed the splitter behavior and will submit a PR with updated wording for DecisionTreeClassifier, DecisionTreeRegressor, and the Extra Trees variants
DOC: clarify splitter='random' behavior in tree docstrings (scikit-le…
AnneBeyer commentedon Mar 24, 2026
There is already a discussion on this going on in #33158.
betatim commentedon Mar 24, 2026
Apologies, I should have closed this issue when I closed #33576 where I said that we do not want to expand the docstring.