Skip to content

Commit 6a37a07

Browse files
committed
iter
1 parent 1fbc4a3 commit 6a37a07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

imblearn/utils/estimator_checks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ def check_samplers_sparse(name, sampler_orig):
255255
)
256256
X_sparse = sparse.csr_matrix(X)
257257
X_res_sparse, y_res_sparse = sampler.fit_resample(X_sparse, y)
258+
sampler = clone(sampler)
258259
X_res, y_res = sampler.fit_resample(X, y)
259260
assert sparse.issparse(X_res_sparse)
260261
assert_allclose(X_res_sparse.A, X_res)

0 commit comments

Comments
 (0)