Skip to content

Categorical Features #17

@emrynHofmannElephant

Description

@emrynHofmannElephant

Hi, I've been using the XGBRegressor with the enable_categoricals=True parameter and passing pd.Categoricals to that. When I use XGBFIR to generate the interaction importances, there are names such as: feature_1:{0,3,4,7,...}|feature_2 (or sometimes feature_2{0,1,...} if feature_2 is also categorical). Is this the splits that XGB used? (i.e. a tree with feature_1 as the first splitting variable, using the set {0,3,4,7,...} as the leaf. Then feature_2 as the 2nd split?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions