Repository navigation
TST Fix some tests with global_random_seed in test_logistic.py - #33021
Conversation
global_random_seed in test_logistic.py
test_logreg_l1 test_logistic_cv_sparse
|
@lesteve I am not sure how to figure out the |
|
@lorentzenchr Can you please have a look? |
I checked the Azure test report for the above run and |
|
Let's merge this quickly to get the We can open a follow-up PR for |
|
@OmarManzoor Thanks for the fix. General comment: As a developer, I find our test setup too complicated. Even when running tests with all rng seeds locally, one still needs a commit to trigger the CD pipeline with all seeds. |
@OmarManzoor I guess you can still check in a PR that the free-threaded build pass with a commit message like this |
Personally I am less and less convinced that our To be explicit about the maintenance costs:
@lorentzenchr to answer your point I don't know how to make our test setup simpler with our current set of constraints so I am proposing to remove one constraint (without too much hope to be honest). In an ideal infinite-resources world (which we don't live in, remember 😉), I think we should have some kind of fuzzing-like tests that lives outside the main CI workflow, tweaks the random seeds, and reports the most problematic tests (maybe they fail for a high number of seeds, maybe the difference is big for values not near 0, or some better criterion). Just to be explicit, this ideal scenario is super unlikely to happen. |
|
+1 to remove the random selection of the seed in nightly builds while keeping the rest of the fixture as is (and in particular the fact that different CI builds use distinct but fixed seeds). |
Reference Issues/PRs
Follow up on #32759 (comment)
What does this implement/fix? Explain your changes.
test_logistic_cv_sparseandtest_logreg_l1so that they pass with all global random seeds.AI usage disclosure
I used AI assistance for:
Any other comments?