Skip to content

Commit ca7b42b

Browse files
authored
TST workaround arpack-ng regression in [scipy-dev] (scikit-learn#29432)
1 parent 4c1747b commit ca7b42b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/utils/estimator_checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,9 @@ def check_array_api_input_and_values(
10281028
def _check_estimator_sparse_container(name, estimator_orig, sparse_type):
10291029
rng = np.random.RandomState(0)
10301030
X = rng.uniform(size=(40, 3))
1031-
X[X < 0.8] = 0
1031+
X[X < 0.6] = 0
10321032
X = _enforce_estimator_tags_X(estimator_orig, X)
1033-
y = (4 * rng.uniform(size=40)).astype(int)
1033+
y = (4 * rng.uniform(size=X.shape[0])).astype(np.int32)
10341034
# catch deprecation warnings
10351035
with ignore_warnings(category=FutureWarning):
10361036
estimator = clone(estimator_orig)

0 commit comments

Comments
 (0)