Skip to content

Commit 20b44c6

Browse files
committed
iter
1 parent f095221 commit 20b44c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imblearn/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ def fit_resample(self, X, y):
273273
X, y, accept_sparse=self.accept_sparse
274274
)
275275

276+
self._classes_counts = get_classes_counts(y)
276277
self.sampling_strategy_ = check_sampling_strategy(
277-
self.sampling_strategy, y, self._sampling_type
278+
self.sampling_strategy, self._classes_counts, self._sampling_type
278279
)
279280

280281
output = self._fit_resample(X, y)

0 commit comments

Comments
 (0)