Skip to content

SMOTENC fails when all features are categorical #562

@linziheng

Description

@linziheng

I have a dataset with 4 categorical features and no continuous feature. When I run it on smote-nc, it throws an error saying

ValueError: Found array with 0 feature(s) (shape=(114965, 0)) while a minimum of 1 is required

Is there a way for smote-nc to work on dataset like this where features are all categorical?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions