Skip to content

Commit a33b9f8

Browse files
committed
iter
1 parent e74293a commit a33b9f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

imblearn/ensemble/_weight_boosting.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,4 +403,8 @@ def _boost_discrete(self, iboost, X, y, sample_weight, random_state):
403403
return sample_weight, estimator_weight, estimator_error
404404

405405
def _boost(self, iboost, X, y, sample_weight, random_state):
406-
return self._boost_discrete(iboost, X, y, sample_weight, random_state)
406+
if self.algorithm == "SAMME.R":
407+
return self._boost_real(iboost, X, y, sample_weight, random_state)
408+
409+
else: # elif self.algorithm == "SAMME":
410+
return self._boost_discrete(iboost, X, y, sample_weight, random_state)

0 commit comments

Comments
 (0)