Python package for SMOTEBoosting algorithm

Viewed 623

I am looking for a Python package for SMOTEBoosting algorithm. But I can only find SMOTE in imbalanced-learn. Can anybody help out here?

1 Answers

Find here an implementation of SMOTEBoost based on sklearn's AdaBoost API.

Note looking at the source, this library supports binary problem only

...
if minority_target is None:
            # Determine the minority class label.
            stats_c_ = Counter(y)
            maj_c_ = max(stats_c_, key=stats_c_.get)
            min_c_ = min(stats_c_, key=stats_c_.get)
            self.minority_target = min_c_
        else:
            self.minority_target = minority_target
....
Related