Skip to content

Getting Feature Importances of Individual Features from Interaction Terms #639

Description

@jinlow

I know that I can get feature importance for each term, with the term_importances, however this includes importances of single terms, as well as interaction terms. Is there a way to distribute the importance of the interaction terms back to their individual features?

Basically what I want is a single vector, N number of features long, where N is the number of input features, to use in variable reduction techniques, or for model interpretation. It's hard to know the importance of a feature in a model precisely, when you can't easily distribute it's importance from when it's used in interactions.

It's my understanding that these interaction terms are essentially a tree structure? Perhaps this could be traversed to determine how the weighted average of bin weights could be attributed to the individual feature of an interaction?

I may be missing a method, or misunderstanding how this is working as well :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions