Skip to content

TST make test_ridge_regression_hstacked_X more lenient #23170

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 7 commits into from
Apr 22, 2022

Conversation

lesteve
Copy link
Member

@lesteve lesteve commented Apr 20, 2022

Fix #23169, trying a similar approach to #23152

test_ridge_regression_hstacked_X
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

@lesteve
Copy link
Member Author

lesteve commented Apr 20, 2022

Hmmm it looks like the test fails in my last commit so:

  • the "all random seeds" test logic does not seem 100% trustable
  • maybe we need to make atol bigger if we want to be pragmatic?

@jeremiedbb
Copy link
Member

For this failure, the elements have approx the same magnitude. Maybe this test needs the tol for ridge to be adjusted for sag like it was done in #23017

@jeremiedbb
Copy link
Member

the "all random seeds" test logic does not seem 100% trustable

I probably found the source of the non determinism between CI runs #23181

test_ridge_regression_hstacked_X
Copy link
Member

@lorentzenchr lorentzenchr left a comment

Choose a reason for hiding this comment

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

LGTM

@jeremiedbb jeremiedbb merged commit 6f7ab19 into scikit-learn:main Apr 22, 2022
@lesteve lesteve deleted the fix-test-ridge-hstacked branch April 22, 2022 10:01
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Apr 29, 2022
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.

test_ridge_regression_hstacked_X is not stable
3 participants