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:
Local Importance Divergence Metric:
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.
Feature Importance Curve Plot:
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:
Granular Insights: Users can easily identify features with local relevance that might not be globally important.
Enhanced Interpretability: These plots make it easier to understand the model’s behavior in heterogeneous datasets.
Clear Visualizations: The new plots offer an intuitive way to observe how feature importance evolves across subpopulations, making it easier to reason about the model's decisions.
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.
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.