Skip to content

Commit 2f93b40

Browse files
committed
iter
1 parent 9431bb8 commit 2f93b40

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

imblearn/utils/estimator_checks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,9 @@ def check_samplers_sparse(name, Sampler):
226226
set_random_state(sampler)
227227
X_res_sparse, y_res_sparse = sampler.fit_resample(X_sparse, y)
228228
X_res, y_res = sampler.fit_resample(X, y)
229-
for x_sp, x, y_sp, y in zip(X_res_sparse, X_res, y_res_sparse, y_res):
230-
assert sparse.issparse(x_sp)
231-
assert_allclose(x_sp.A, x)
232-
assert_allclose(y_sp, y)
229+
assert sparse.issparse(X_res_sparse)
230+
assert_allclose(X_res_sparse.A, X_res)
231+
assert_allclose(y_res_sparse, y_res)
233232

234233

235234
def check_samplers_pandas(name, Sampler):

0 commit comments

Comments
 (0)