modAL-python / modAL

A modular active learning framework for Python
https://modAL-python.github.io/
MIT License
2.23k stars 324 forks source link

QBC stratified bootstrapping #178

Open Wojtek-Rokicki opened 1 year ago

Wojtek-Rokicki commented 1 year ago

I am writing my master thesis on imbalanced dataset impact on active learning methods. I have stumbled upon a problem in bootstrapping. When there is few minority class samples, sometimes models are bootstrapped only majority class samples and it results with: ValueError: The number of classes has to be greater than one; got 1 class

Would it be reasonable to implement stratified bootstrapping? I will make a pull request soon with the proposition.

Wojtek-Rokicki commented 1 year ago

179