Skip to content

FIX Raises error in PLSRegression for invalid n_components#29710

Merged
OmarManzoor merged 4 commits into
scikit-learn:mainfrom
thomasjpfan:thomasjpfan/fix_pls_pr
Aug 29, 2024
Merged

FIX Raises error in PLSRegression for invalid n_components#29710
OmarManzoor merged 4 commits into
scikit-learn:mainfrom
thomasjpfan:thomasjpfan/fix_pls_pr

Conversation

@thomasjpfan

Copy link
Copy Markdown
Member

Reference Issues/PRs

Fixes #29662

What does this implement/fix? Explain your changes.

The rank of X.T @ X is bounded above by min(n_samples, n_features) and not just n_features. For details see: #26204 (review)

@github-actions

github-actions Bot commented Aug 24, 2024

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: c614872. Link to the linter CI: here

@OmarManzoor OmarManzoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks @thomasjpfan
Just one question

Comment thread sklearn/cross_decomposition/tests/test_pls.py Outdated
@OmarManzoor OmarManzoor merged commit 142d824 into scikit-learn:main Aug 29, 2024
MarcBresson pushed a commit to MarcBresson/scikit-learn that referenced this pull request Sep 2, 2024
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.

incorrect PLS rank bounds

3 participants