8000 DOC Ensures that PLSRegression passes numpydoc validation (#21208) · scikit-learn/scikit-learn@39f7790 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39f7790

Browse files
authored
DOC Ensures that PLSRegression passes numpydoc validation (#21208)
1 parent e7fb5b8 commit 39f7790

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

maint_tools/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"MultiTaskLassoCV",
2121
"OrthogonalMatchingPursuit",
2222
"OrthogonalMatchingPursuitCV",
23-
"PLSRegression",
2423
"PassiveAggressiveClassifier",
2524
"PassiveAggressiveRegressor",
2625
"PatchExtractor",

sklearn/cross_decomposition/_pls.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def _more_tags(self):
549549

550550

551551
class PLSRegression(_PLS):
552-
"""PLS regression
552+
"""PLS regression.
553553
554554
PLSRegression is also known as PLS2 or PLS1, depending on the number of
555555
targets.
@@ -577,9 +577,9 @@ class PLSRegression(_PLS):
577577
than `tol`, where `u` corresponds to the left singular vector.
578578
579579
copy : bool, default=True
580-
Whether to copy `X` and `Y` in fit before applying centering, and
581-
potentially scaling. If False, these operations will be done inplace,
582-
modifying both arrays.
580+
Whether to copy `X` and `Y` in :term:`fit` before applying centering,
581+
and potentially scaling. If `False`, these operations will be done
582+
inplace, modifying both arrays.
583583
584584
Attributes
585585
----------
@@ -626,6 +626,10 @@ class PLSRegression(_PLS):
626626
627627
.. versionadded:: 1.0
628628
629+
See Also
630+
--------
631+
PLSCanonical : Partial Least Squares transformer and regressor.
632+
629633
Examples
630634
--------
631635
>>> from sklearn.cross_decomposition import PLSRegression

0 commit comments

Comments
 (0)
0