Skip to content
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

Merged
merged 6 commits into from
Oct 17, 2024
Merged

Conversation

ArturoAmorQ
Copy link
Collaborator

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.

@@ -127,6 +124,7 @@ def bootstrap_sample(data, target):
data_bootstrap, target_bootstrap = bootstrap_sample(
data_train,
target_train,
seed=bootstrap_idx,
Copy link
Collaborator

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.

Copy link
Collaborator

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @ArturoAmorQ

@ArturoAmorQ ArturoAmorQ merged commit 8982b3f into INRIA:main Oct 17, 2024
3 checks passed
@ArturoAmorQ ArturoAmorQ deleted the default_rng branch October 17, 2024 17:38
github-actions bot pushed a commit to kalona/scikit-learn-mooc that referenced this pull request Nov 2, 2024
github-actions bot pushed a commit to scgupta/scikit-learn-mooc that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants