-
Notifications
You must be signed in to change notification settings - Fork 515
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
ENH Rework bagging notebook #778
Conversation
python_scripts/ensemble_bagging.py
Outdated
@@ -127,6 +124,7 @@ def bootstrap_sample(data, target): | |||
data_bootstrap, target_bootstrap = bootstrap_sample( | |||
data_train, | |||
target_train, | |||
seed=bootstrap_idx, |
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.
I might add a small comment to mention that since we pass different seed, we ensure that the bootstrap samples are different but reproducible.
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.
LGTM. Thanks @ArturoAmorQ
As mentioned in #763 (comment), we should avoid showing a pattern where people would use the random number generator across different function and estimators. This PR fixes the issue and takes the opportunity to rework the general wording.