-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC add links to cross decomposition examples #26934
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
DOC add links to cross decomposition examples #26934
Conversation
Could you please limit this PR to |
Will update the PR description. Should another PR be created to address the changes for |
Yes, a separate PR for CCA sounds good. |
@adrinjalali Moved out the changes concerning #26966 addresses the linking of examples for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would make sense to keep all links to a single example in a single PR, but limit the PR to a single example, rather than splitting the PR in a way that links to the same example are in different PRs.
befd232
to
339139c
Compare
Note: linter's failing. This probably shouldn't happen if you enable pre-commit hooks. You also need to pull first before you work on this branch since I've pushed an update here. |
@punndcoder28 are you gonna be working on this? |
Sorry @adrinjalali missed this, will fix the linting issue |
sklearn/cross_decomposition/_pls.py
Outdated
For a comparison between PLS Regression and :class:`~sklearn.decomposition.PCA`, see | ||
:ref:`sphx_glr_auto_examples_cross_decomposition_plot_pcr_vs_pls.py`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think moving this to the Examples
section directly bellow should fix the CI issue.
@punndcoder28 would you like to continue working on this PR? If you need help let us know. |
Apologies, the comments did not notify me. Will update the PR again |
15c37dd
to
cd39b3b
Compare
@@ -596,6 +599,9 @@ class PLSRegression(_PLS): | |||
>>> pls2.fit(X, Y) | |||
PLSRegression() | |||
>>> Y_pred = pls2.predict(X) | |||
|
|||
For a comparison between PLS Regression and :class:`~sklearn.decomposition.PCA`, see | |||
:ref:`sphx_glr_auto_examples_cross_decomposition_plot_pcr_vs_pls.py`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this to the example section. Is this OK @adrinjalali
Reference Issues/PRs
Adds links to
cross-decomposition
examples as mentioned in #26927What does this implement/fix? Explain your changes.
Adds links to the auto-generated examples for classes
PLSRegression
andPLSCanonical
. The diff also adds link to the example comparingPLSRegression
andPCR
Classes linked with examples
PLSRegression
insklearn/cross_decomposition/_pls.py
PLSCanonical
insklearn/cross_decomposition/_pls.py