Skip to content

TST improve test_ridge_regression_unpenalized_hstacked_X - #34334

Merged
virchan merged 8 commits into
scikit-learn:mainfrom
lorentzenchr:test_ridge
Jul 22, 2026
Merged

virchan merged 8 commits into
scikit-learn:mainfrom
lorentzenchr:test_ridge

Conversation

@lorentzenchr

Copy link
Copy Markdown
Member

Reference Issues/PRs

None

What does this implement/fix? Explain your changes.

This PR improves and corrects the Ridge test test_ridge_regression_unpenalized_hstacked_X, in particular as to the minimum norm solution.

AI usage disclosure

None

Any other comments?

@lorentzenchr lorentzenchr added the module:test-suite everything related to our tests label Jun 20, 2026
@lorentzenchr

Copy link
Copy Markdown
Member Author

Insights from the [all rangom seeds] commit 773b7ef:

  • All Ridge tests pass.
  • Failing are:
    • cluster/tests/test_bicluster.py::test_spectral_biclustering[97-csr_matrix] - assert 0.40740740740740744 == 1
    • cluster/tests/test_bicluster.py::test_spectral_biclustering[97-csr_array] - assert 0.40740740740740744 == 1
    • FAILED metrics/tests/test_pairwise_distances_reduction.py::test_format_agnosticism[30-csr_matrix-RadiusNeighbors-float32] (only on Linux i386 debian_32bit)
    • FAILED metrics/tests/test_pairwise_distances_reduction.py::test_format_agnosticism[30-csr_array-RadiusNeighbors-float32] (only on Linux i386 debian_32bit)

@github-actions github-actions Bot added the CI:Linter failure The linter CI is failing on this PR label Jun 24, 2026
@github-actions github-actions Bot removed the CI:Linter failure The linter CI is failing on this PR label Jun 24, 2026
@lorentzenchr

Copy link
Copy Markdown
Member Author

@virchan May I ping you here, too?
This PR only touches tests.

@virchan virchan 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! Thanks, @lorentzenchr!

@virchan
virchan merged commit 675a5e1 into scikit-learn:main Jul 22, 2026
31 checks passed
@lorentzenchr

Copy link
Copy Markdown
Member Author

@virchan thanks for approving and merging.

@lorentzenchr
lorentzenchr deleted the test_ridge branch July 23, 2026 05:27
prady0t pushed a commit to prady0t/scikit-learn that referenced this pull request Sep 2, 2026
@jeremiedbb jeremiedbb mentioned this pull request Sep 8, 2026
14 tasks done
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.

2 participants