Skip to content

TST use global_random_seed in sklearn/linear_model/tests/test_logistic.py #31362

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

DeaMariaLeon
Copy link
Contributor

Reference Issues/PRs

Towards #22827

What does this implement/fix? Explain your changes.

Any other comments?

Copy link

github-actions bot commented May 13, 2025

✔️ Linting Passed

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

Generated for commit: 9d80cb8. Link to the linter CI: here

@lorentzenchr
Copy link
Member

@DeaMariaLeon Please note that LogisticRegression makes use of random_state only when solver == ‘sag’, ‘saga’ or ‘liblinear’ (to shuffle the data).

@DeaMariaLeon
Copy link
Contributor Author

Thank you so much @lorentzenchr!

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