TST Reduce dataset size in check_estimator_sparse_data
@@ -791,7 +791,7 @@ def _generate_sparse_matrix(X_csr):
def check_estimator_sparse_data(name, estimator_orig):
rng = np.random.RandomState(0)
- X = rng.rand(40, 10)
+ X = rng.rand(40, 3)
X[X < 0.8] = 0
X = _pairwise_estimator_convert_X(X, estimator_orig)
X_csr = sparse.csr_matrix(X)
