Repository navigation
DOC improve RandomForest docstring by explicitely stating the splitter strategy used - #27746
Merged
Merged
Conversation
glemaitre
self-requested a review
November 8, 2023 12:24
glemaitre
reviewed
Nov 8, 2023
glemaitre
left a comment
Member
There was a problem hiding this comment.
It looks good. Once the comments are addressed we can merge this PR.
| A random forest is a meta estimator that fits a number of decision tree | ||
| classifiers on various sub-samples of the dataset and uses averaging to | ||
| improve the predictive accuracy and control over-fitting. | ||
| Trees in a forest use the parameter `splitter="best"`. |
Member
There was a problem hiding this comment.
I would rephrase a bit to not mention the parameter first since this is not in the list of parameter.
Suggested change
| Trees in a forest use the parameter `splitter="best"`. | |
| Trees in the forest use the best split strategy, i.e. equivalent to passing `splitter="best"` | |
| to the underlying :class:`~sklearn.tree.DecisionTreeClassifier`. |
| A random forest is a meta estimator that fits a number of decision | ||
| tree regressors on various sub-samples of the dataset and uses averaging | ||
| to improve the predictive accuracy and control over-fitting. | ||
| Trees in a forest use the parameter `splitter="best"`. |
Member
There was a problem hiding this comment.
Suggested change
| Trees in a forest use the parameter `splitter="best"`. | |
| Trees in the forest use the best split strategy, i.e. equivalent to passing `splitter="best"` | |
| to the underlying :class:`~sklearn.tree.DecisionTreeRegressor`. |
glemaitre
reviewed
Nov 8, 2023
| A random forest is a meta estimator that fits a number of decision tree | ||
| classifiers on various sub-samples of the dataset and uses averaging to | ||
| improve the predictive accuracy and control over-fitting. | ||
| Trees in the forest use the best split strategy, i.e. equivalent to passing `splitter="best"` |
Member
There was a problem hiding this comment.
The linter is failing because this is more than 88 characters. Could your rewrap the sentence.
Contributor
Author
There was a problem hiding this comment.
Both paragraphs are now fixed.
glemaitre
reviewed
Nov 8, 2023
| tree regressors on various sub-samples of the dataset and uses averaging | ||
| to improve the predictive accuracy and control over-fitting. | ||
| A random forest is a meta estimator that fits a number of decision tree | ||
| classifiers on various sub-samples of the dataset and uses averaging to |
Member
There was a problem hiding this comment.
Suggested change
| classifiers on various sub-samples of the dataset and uses averaging to | |
| regressors on various sub-samples of the dataset and uses averaging to |
glemaitre
enabled auto-merge (squash)
November 8, 2023 14:33
REDVM
pushed a commit
to REDVM/scikit-learn
that referenced
this pull request
Nov 16, 2023
This was referenced Sep 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partially addresses issue #27159
Addressed the first two bullet points of glemaitre's comment
@betatim @glemaitre