Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a870f43

Browse filesBrowse files
DOC clarify variance estimation in PCA implementation (#19378)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
1 parent c3f647a commit a870f43
Copy full SHA for a870f43

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎sklearn/decomposition/_pca.py

Copy file name to clipboardExpand all lines: sklearn/decomposition/_pca.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ class PCA(_BasePCA):
217217
218218
explained_variance_ : ndarray of shape (n_components,)
219219
The amount of variance explained by each of the selected components.
220+
The variance estimation uses `n_samples - 1` degrees of freedom.
220221
221222
Equal to n_components largest eigenvalues
222223
of the covariance matrix of X.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.