8000 TST Increases tol for check_pca_float_dtype_preservation assertion (#… · scikit-learn/scikit-learn@0fa54e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0fa54e5

Browse files
thomasjpfanqinhanmin2014
authored andcommitted
TST Increases tol for check_pca_float_dtype_preservation assertion (#15775)
1 parent e4c0ada commit 0fa54e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/decomposition/tests/test_pca.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ 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-
assert_allclose(pca_64.components_, pca_32.components_, rtol=1e-4)
535+
assert_allclose(pca_64.components_, pca_32.components_, rtol=2e-4)
536536

537537

538538
def check_pca_int_dtype_upcast_to_double(svd_solver):

0 commit comments

Comments
 (0)
0