Skip to content

Commit 9b605b4

Browse files
authored
TST Reduce dataset size in check_estimator_sparse_data (scikit-learn#21515)
1 parent 46485a9 commit 9b605b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/utils/estimator_checks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ def _generate_sparse_matrix(X_csr):
791791

792792
def check_estimator_sparse_data(name, estimator_orig):
793793
rng = np.random.RandomState(0)
794-
X = rng.rand(40, 10)
794+
X = rng.rand(40, 3)
795795
X[X < 0.8] = 0
796796
X = _pairwise_estimator_convert_X(X, estimator_orig)
797797
X_csr = sparse.csr_matrix(X)

0 commit comments

Comments
 (0)