Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TST use global_random_seed in sklearn/feature_extraction/tests/test_image.py #31310

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

Merged
merged 3 commits into from
Jun 13, 2025

Conversation

TheAyos
Copy link
Contributor

@TheAyos TheAyos commented May 5, 2025

Hello :)

Reference Issues/PRs

This aims to solve the PR #22827 with regard to the mentioned test file.

What does this implement/fix? Explain your changes.

I added some additional global_random_seed's to replace the previously hardcoded random_state's and RandomState()'s.

Any other comments?

Running pytest on this test file before and after the edit yields similar results, in a similar runtime.

Copy link

github-actions bot commented May 5, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: a99ee25. Link to the linter CI: here

@TheAyos TheAyos marked this pull request as ready for review May 5, 2025 20:08
test_patch_extractor_fit
test_patch_extractor_max_patches
test_patch_extractor_max_patches_default
test_patch_extractor_all_patches
test_patch_extractor_color
Copy link
Member

@jeremiedbb jeremiedbb 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 @TheAyos

@jeremiedbb jeremiedbb merged commit 4872503 into scikit-learn:main Jun 13, 2025
37 of 38 checks passed
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