-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] DOC Better explain the source of randomness for tree based models #15264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… the source of randomness
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dbauer9 , this should help a lot of people.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @dbauer9 .
Looks good mostly. I think we should link to the glossary for the random state.
There are some line too long issues @dbauer9, you should not exceed 79 characters. You can check locally with |
I solved the conflicts and I will merge when it is green. |
Thanks @dbauer9 |
Reference Issues/PRs
#12980
What does this implement/fix? Explain your changes.
This PR improves the documentation for DecisionTreeClassifier and DecisionTreeRegressor regarding the source of randomness. The only changes were made in the docstrings of sklearn/tree/tree.py.
This improves the documentation addressing several misinterpretations I found users make regarding the random_state parameter in tree based models.
Some of the misconceptions are
Any other comments?