8000 DOC add comment in check_pca_float_dtype_preservation (#15819) · scikit-learn/scikit-learn@62b1e26 · GitHub
[go: up one dir, main page]

Skip to content

Commit 62b1e26

Browse files
adrinjalalirth
authored andcommitted
DOC add comment in check_pca_float_dtype_preservation (#15819)
Documenting the changes in #15775
1 parent 49b03be commit 62b1e26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sklearn/decomposition/tests/test_pca.py

+3
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ def check_pca_float_dtype_preservation(svd_solver):
532532
assert pca_64.transform(X_64).dtype == np.float64
533533
assert pca_32.transform(X_32).dtype == np.float32
534534

535+
# the rtol is set such that the test passes on all platforms tested on
536+
# conda-forge: PR#15775
537+
# see: https://github.com/conda-forge/scikit-learn-feedstock/pull/113
535538
assert_allclose(pca_64.components_, pca_32.components_, rtol=2e-4)
536539

537540

0 commit comments

Comments
 (0)
0