-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Description of bootstrapping for RandomForest estimators #16733
Copy link
Copy link
Closed
Labels
Documentationgood first issueEasy with clear instructions to resolveEasy with clear instructions to resolvehelp wanted
Description
Describe the issue linked to the documentation
The docstrings for sklearn.ensemble.RandomForestClassifier and sklearn.ensemble.RandomForestClassifier states that:
The sub-sample size is always the same as the original input sample size but the samples are drawn with replacement if
bootstrap=True(default).
However, the new max_samples parameter has been added in version 0.22, so it needs updating (or removing).
Suggest a potential alternative/fix
A simple change would be to mention this new parameter and to borrow the documentation for the bootstrap parameter:
The sub-sample size is controlled with the
max_samplesparameter ifbootstrap=True(default), otherwise the whole dataset is used to build each tree.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Documentationgood first issueEasy with clear instructions to resolveEasy with clear instructions to resolvehelp wanted