In the case of too few samples to perform stratification there is an error thrown:
The least populated class in y has only 2 members, which is less than n_splits=5.
Maybe we can detect such situations and upsample minor classes? For sure it is related to #157 However, this issue requires rather a quick fix and #157 requires a larger treatment of unbalanced datasets.
In the case of too few samples to perform stratification there is an error thrown:
Maybe we can detect such situations and upsample minor classes? For sure it is related to #157 However, this issue requires rather a quick fix and #157 requires a larger treatment of unbalanced datasets.