Skip to content

TST Fix ridge tests not deterministic - #23181

Merged
thomasjpfan merged 3 commits into
scikit-learn:mainfrom
jeremiedbb:fix-ridge-tests-deterministic
Apr 21, 2022
Merged

thomasjpfan merged 3 commits into
scikit-learn:mainfrom
jeremiedbb:fix-ridge-tests-deterministic

Conversation

@jeremiedbb

Copy link
Copy Markdown
Member

The ols_ridge_dataset fixture was missing calling make_low_rank_matrix with a fixed random_state. It's probably the cause of the non determinism we see when trying to run these tests for all random seeds.

Maybe the work done in #23026 was not necessary after all 😄. But I find it convenient still.

test_ridge_regression
test_ridge_regression_hstacked_X
test_ridge_regression_vstacked_X
test_ridge_regression_unpenalized
test_ridge_regression_unpenalized_hstacked_X
test_ridge_regression_unpenalized_vstacked_X
test_ridge_regression_sample_weights

@lorentzenchr lorentzenchr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@lorentzenchr lorentzenchr added the Quick Review For PRs that are quick to review label Apr 21, 2022

@thomasjpfan thomasjpfan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@thomasjpfan
thomasjpfan merged commit da78863 into scikit-learn:main Apr 21, 2022
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Apr 29, 2022
@jeremiedbb
jeremiedbb deleted the fix-ridge-tests-deterministic branch September 3, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants