Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add per feature "maximum category" counts to OrdinalEncoder #26013

Open
@betatim

Description

@betatim

Describe the workflow you want to enable

This is a follow up task for #25677

It would be nice to allow users to specify a per feature number of maxcategories instead of having a global limit as implemented in #25677.

More details in the linked comment.

Describe your proposed solution

Allow users to pass a list of shape (n_features,) or a dict mapping column name to max_categories values to specify the number of maximum categories per feature.

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions