8000 DOC Ensures that PLSCanonical passes numpydoc validation (#21175) · scikit-learn/scikit-learn@9cb4e76 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cb4e76

Browse files
DOC Ensures that PLSCanonical passes numpydoc validation (#21175)
1 parent 20509fb commit 9cb4e76

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

maint_tools/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"MultiTaskLassoCV",
2323
"OrthogonalMatchingPursuit",
2424
"OrthogonalMatchingPursuitCV",
25-
"PLSCanonical",
2625
"PLSRegression",
2726
"PLSSVD",
2827
"PassiveAggressiveClassifier",

sklearn/cross_decomposition/_pls.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ class PLSCanonical(_PLS):
680680
will compute the whole SVD.
681681
682682
max_iter : int, default=500
683-
the maximum number of iterations of the power method when
683+
The maximum number of iterations of the power method when
684684
`algorithm='nipals'`. Ignored otherwise.
685685
686686
tol : float, default=1e-06
@@ -748,6 +748,11 @@ class PLSCanonical(_PLS):
748748
749749
.. versionadded:: 1.0
750750
751+
See Also
752+
--------
753+
CCA : Canonical Correlation Analysis.
754+
PLSSVD : Partial Least Square SVD.
755+
751756
Examples
752757
--------
753758
>>> from sklearn.cross_decomposition import PLSCanonical
@@ -757,11 +762,6 @@ class PLSCanonical(_PLS):
757762
>>> plsca.fit(X, Y)
758763
PLSCanonical()
759764
>>> X_c, Y_c = plsca.transform(X, Y)
760-
761-
See Also
762-
--------
763-
CCA
764-
PLSSVD
765765
"""
766766

767767
# This implementation provides the same results that the "plspm" package

0 commit comments

Comments
 (0)
0