Skip to content

Minor class in multi-class classification with too few samples to stratify #215

Description

@pplonski

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions