Skip to content

Allow RandomUp/DownSampler to run with Non-numeric columns for Pre-Encoding Sampling #429

Closed
@JoshuaC3

Description

@JoshuaC3

I wished to use undersampling before doing categorical encoding. Naturally, I have strings in the columns so the .fit_sample or simply .fit methods throw errors because it cannot use X with non-numerics.

I think there should be a kwarg that can be passed so that the checks are not made. I can then encode my categoricals (using stats based encoding such as count or mean based encoding) afterwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions