8000 MAINT XFAIL check_sample_weight_equivalence for LinearRegression on 3… · scikit-learn/scikit-learn@4f847f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f847f5

Browse files
authored
MAINT XFAIL check_sample_weight_equivalence for LinearRegression on 32 bit CI (#31101)
1 parent 187197f commit 4f847f5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

sklearn/utils/_test_common/instance_generator.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
from sklearn.utils import all_estimators
177177
from sklearn.utils._tags import get_tags
178178
from sklearn.utils._testing import SkipTest
179-
from sklearn.utils.fixes import parse_version, sp_base_version
179+
from sklearn.utils.fixes import _IS_32BIT, parse_version, sp_base_version
180180

181181
CROSS_DECOMPOSITION = ["PLSCanonical", "PLSRegression", "CCA", "PLSSVD"]
182182

@@ -1283,5 +1283,17 @@ def _get_expected_failed_checks(estimator):
12831283
"check_dataframe_column_names_consistency": "FIXME",
12841284
}
12851285
)
1286+
if type(estimator) == LinearRegression:
1287+
if _IS_32BIT:
1288+
failed_checks.update(
1289+
{
1290+
"check_sample_weight_equivalence_on_dense_data": (
1291+
"Issue #31098. Fails on 32-bit platforms with recent scipy."
1292+
),
1293+
"check_sample_weight_equivalence_on_sparse_data": (
1294+
"Issue #31098. Fails on 32-bit platforms with recent scipy."
1295+
),
1296+
}
1297+
)
12861298

12871299
return failed_checks

0 commit comments

Comments
 (0)
0