We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a9ad10 commit 0ea65bbCopy full SHA for 0ea65bb
sklearn/decomposition/pca.py
@@ -664,9 +664,10 @@ def _fit(self, X):
664
"""
665
random_state = check_random_state(self.random_state)
666
if sparse.issparse(X):
667
- warnings.warn("Sparse matrix support is deprecated"
668
- " and will be dropped in 0.16."
669
- " Use TruncatedSVD instead.",
+ warnings.warn("Sparse matrix support is deprecated in 0.15"
+ " and will be dropped in 0.17. In particular"
+ " computed explained variance is incorrect on"
670
+ " sparse data. Use TruncatedSVD instead.",
671
DeprecationWarning)
672
else:
673
# not a sparse matrix, ensure this is a 2D array
0 commit comments