Reduce precision requirements for float32 PCA
Fixes
@@ -721,8 +721,9 @@ def check_pca_float_dtype_preservation(svd_solver):
assert pca_64.transform(X_64).dtype == np.float64
assert pca_32.transform(X_32).dtype == np.float32
+ # decimal=5 fails on mac with scipy = 1.1.0
assert_array_almost_equal(pca_64.components_, pca_32.components_,
- decimal=5)
+ decimal=4)
def check_pca_int_dtype_upcast_to_double(svd_solver):
