Repository navigation
TST cleanup of tests for LogisticRegression - #32759
Merged
Merged
Conversation
* This test adds nothing that isn't already tested
…tic_regression_solvers_multiclass
lorentzenchr
force-pushed
the
tst_logreg_cleanup
branch
from
November 21, 2025 14:16
b52978e to
830258b
Compare
Member
Author
|
@OmarManzoor @virchan You might be interested in this one. |
OmarManzoor
approved these changes
Jan 5, 2026
OmarManzoor
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Thank you for the cleanup @lorentzenchr
virchan
approved these changes
Jan 5, 2026
virchan
left a comment
Member
There was a problem hiding this comment.
LGTM! Thanks, @lorentzenchr!
@OmarManzoor, could we merge this?
Member
|
Looks like this is causing the CI to fail for some random seeds, see automatically opened issues #32710 #33016 #33017 #33018 I can reproduce the SKLEARN_TESTS_GLOBAL_RANDOM_SEED=all pytest sklearn/linear_model/tests/test_logistic.py -k 'test_logistic_cv_sparse and sag and csr'I am not able to reproduce the |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
None
What does this implement/fix? Explain your changes.
Over time,
test_logistic.pyhas grown to more than 2600 lines of code with duplicate tests.This PR reorders some of the tests and removes some of the duplicate ones.
Any other comments?
In case of doubt, follow the single commits. I tried to keep them very clean.