Skip to content

Commit 78301f5

Browse files
authored
TST Make test_dtype_preprocess_data pass for all global random seeds (scikit-learn#31935)
1 parent b265982 commit 78301f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/linear_model/tests/test_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ def test_dtype_preprocess_data(rescale_with_sw, fit_intercept, global_random_see
649649
assert X_64.dtype == np.float64
650650
assert y_64.dtype == np.float64
651651

652-
assert_allclose(Xt_32, Xt_64, rtol=1e-3, atol=1e-7)
653-
assert_allclose(yt_32, yt_64, rtol=1e-3, atol=1e-7)
652+
assert_allclose(Xt_32, Xt_64, rtol=1e-3, atol=1e-6)
653+
assert_allclose(yt_32, yt_64, rtol=1e-3, atol=1e-6)
654654
assert_allclose(X_mean_32, X_mean_64, rtol=1e-6)
655655
assert_allclose(y_mean_32, y_mean_64, rtol=1e-6)
656656
assert_allclose(X_scale_32, X_scale_64)

0 commit comments

Comments
 (0)