New Feature: Subpopulation-based Feature Importance Plots #579
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This pull request addresses #578 by adding two new plots that help users better understand how feature importance varies across different subpopulations of the data.
Fixes #578
Context:
The issue identified a need for more granular insights into feature importance, specifically highlighting features that may have significant local importance within certain subpopulations while remaining less influential globally. This helps in improving model interpretability when working with datasets that have heterogeneous populations.
New Plots Added:
This plot highlights features that differ in importance across subpopulations. It allows users to quickly spot features that are influential only in specific regions of the dataset.
This plot provides a visual representation of how feature importance fluctuates across samples. It plots the importance curves for each feature, giving users a way to visually inspect how consistent or varied a feature's importance is throughout the data.
Benefits:
Example Use Case:
In a customer segmentation dataset, these plots could show that features like "age" or "income" have varying importance in different customer segments, while features like "purchase history" remain important across all segments.