Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX Raises error in PLSRegression for invalid n_components #29710

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 4 commits into from
Aug 29, 2024

Conversation

thomasjpfan
Copy link
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)

Copy link

github-actions bot commented Aug 24, 2024

✔️ Linting Passed

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

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

Copy link
Contributor

@OmarManzoor OmarManzoor left a comment

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

@OmarManzoor OmarManzoor merged commit 142d824 into scikit-learn:main Aug 29, 2024
30 checks passed
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