Skip to content

Update logistic regression test threshold #6487

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

Open
wants to merge 4 commits into
base: branch-25.06
Choose a base branch
from

Conversation

viclafargue
Copy link
Contributor

It looks like the test_logistic_regression_model_digits is making the CI fail intermittently. This change lowers the threshold
for the test. Please tell me if you think that it is a genuine test failure that happens because of a recent change.

See failure here.

@viclafargue viclafargue requested a review from a team as a code owner March 25, 2025 14:07
@viclafargue viclafargue requested review from teju85 and wphicks March 25, 2025 14:07
@github-actions github-actions bot added the Cython / Python Cython or Python issue label Mar 25, 2025
@@ -693,7 +693,7 @@ def test_logistic_regression_model_digits(
# smallest sklearn score with max_iter = 10000
# put it as a constant here, because sklearn 0.23.1 needs a lot of iters
# to converge and has a bug returning an unrelated error if not converged.
acceptable_score = 0.95
acceptable_score = 0.94
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about lowering this even more? Mostly to avoid us coming here again in the future to lower it to 0.93, and then a few months later again, etc.

Maybe something like 0.90 is good enough to detect that "things broadly work" and would make it very unlikely that we get unlucky and see it fluctuate down. I assume this test is more of a smoke test/check that things generally work. Not one that checks that there are no bugs in the algorithm's implementation.

@csadorf csadorf added bug Something isn't working tests Unit testing for project non-breaking Non-breaking change labels Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change tests Unit testing for project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants