8000 DOC Clarify sorting order of PCA components (#24531) · scikit-learn/scikit-learn@44860bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 44860bd

Browse files
authored
DOC Clarify sorting order of PCA components (#24531)
1 parent 703bee6 commit 44860bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sklearn/decomposition/_incremental_pca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class IncrementalPCA(_BasePCA):
7373
Principal axes in feature space, representing the directions of
7474
maximum variance in the data. Equivalently, the right singular
7575
vectors of the centered input data, parallel to its eigenvectors.
76-
The components are sorted by ``explained_variance_``.
76+
The components are sorted by decreasing ``explained_variance_``.
7777
7878
explained_variance_ : ndarray of shape (n_components,)
7979
Variance explained by each of the selected components.

sklearn/decomposition/_pca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class PCA(_BasePCA):
233233
Principal axes in feature space, representing the directions of
234234
maximum variance in the data. Equivalently, the right singular
235235
vectors of the centered input data, parallel to its eigenvectors.
236-
The components are sorted by ``explained_variance_``.
236+
The components are sorted by decreasing ``explained_variance_``.
237237
238238
explained_variance_ : ndarray of shape (n_components,)
239239
The amount of variance explained by each of the selected components.

0 commit comments

Comments
 (0)
0