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

Skip to content

Commit d960a6f

Browse files
adrinjalaliogrisel
authored andcommitted
DOC add comment in check_pca_float_dtype_preservation (scikit-learn#15819)
Documenting the changes in scikit-learn#15775
1 parent 169b0d6 commit d960a6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sklearn/decomposition/tests/test_pca.py

Lines changed: 3 additions & 0 deletions
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