Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3df1df

Browse files
author
Joan Massich
committed
tweak windows tolerance
1 parent 1e9881f commit e3df1df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sklearn/linear_model/tests/test_ridge.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import numpy as np
23
import scipy.sparse as sp
34
from scipy import linalg
@@ -38,7 +39,7 @@
3839
from sklearn.model_selection import GridSearchCV
3940
from sklearn.model_selection import KFold
4041

41-
from sklearn.utils import check_random_state
42+
from sklearn.utils import check_random_state, _IS_32BIT
4243
from sklearn.datasets import make_multilabel_classification
4344

4445
diabetes = datasets.load_diabetes()
@@ -950,6 +951,7 @@ def test_ridge_regression_dtype_stability(solver, assert_tolerance):
950951
y = np.dot(X, coef) + 0.01 * rng.randn(n_samples)
951952
RANDOM_STATE = np.random.RandomState(0)
952953
ALPHA = 1.0
954+
rtol = 1e-2 if os.name == 'nt' and _IS_32BIT else 1e-5
953955

954956
results = { current_dtype: ridge_regression(X.astype(current_dtype),
955957
y.astype(current_dtype),

0 commit comments

Comments
 (0)