We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c1747b commit ca7b42bCopy full SHA for ca7b42b
sklearn/utils/estimator_checks.py
@@ -1028,9 +1028,9 @@ def check_array_api_input_and_values(
1028
def _check_estimator_sparse_container(name, estimator_orig, sparse_type):
1029
rng = np.random.RandomState(0)
1030
X = rng.uniform(size=(40, 3))
1031
- X[X < 0.8] = 0
+ X[X < 0.6] = 0
1032
X = _enforce_estimator_tags_X(estimator_orig, X)
1033
- y = (4 * rng.uniform(size=40)).astype(int)
+ y = (4 * rng.uniform(size=X.shape[0])).astype(np.int32)
1034
# catch deprecation warnings
1035
with ignore_warnings(category=FutureWarning):
1036
estimator = clone(estimator_orig)
0 commit comments