Principle:Scikit learn contrib Imbalanced learn Balanced Bagging
| Knowledge Sources | |
|---|---|
| Domains | Machine_Learning, Ensemble_Learning, Imbalanced_Learning |
| Last Updated | 2026-02-09 03:00 GMT |
Overview
A bagging ensemble method that resamples each bootstrap to balance class distributions before training each base estimator.
Description
Balanced Bagging extends standard bagging by inserting a resampling step before each base estimator's training. By default, RandomUnderSampler is used, but any sampler can be plugged in. This allows implementing variants such as Exactly Balanced Bagging, Roughly Balanced Bagging, Over-Bagging, and SMOTE-Bagging by changing the sampler.
Usage
Use this principle when bagging with any base estimator (not just trees) and you want per-bag balancing with a configurable sampler.
Theoretical Basis
For each base estimator in the ensemble:
- Draw a bootstrap sample from the training data
- Apply a sampler (default: under-sampling) to balance the bootstrap
- Train the base estimator on the balanced bootstrap