Skip to content

[MRG] TST use global_random_seed in sklearn/ensemble/tests/test_base.py #23562

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

haochunchang
Copy link
Contributor

Reference Issues/PRs

Towards #22827

What does this implement/fix? Explain your changes.

  • Use global_random_seed in ensemble._make_estimator.
  • Add assertions for BaggingClassifier initialized with numpy integer.

Any other comments?

Not sure if adding assertions is out of the scope of this PR.
And I think it might not be necessary to use global_random_seed in ensemble._make_estimator since we only test random_state. But I might be missing something.

@glemaitre
Copy link
Member

Closing this PR since there is no need for global_random_state for this file. Thanks, @haochunchang. I will mark this file as checked in the original issue.

@glemaitre glemaitre closed this Jun 29, 2022
@haochunchang haochunchang deleted the global-random-seed-ensemble-test-base branch June 29, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants