FeatureImportancePlotter#
- class openstef_models.explainability.plotters.FeatureImportancePlotter(**data: Any) None[source]
Bases:
BaseConfigCreates treemap visualizations of feature importance scores.
- Parameters:
data (
Any)
- static plot(scores: DataFrame, quantile: Quantile = Q(0.5)) Figure[source]
Generate interactive treemap showing feature importance.
Creates a color-coded treemap where each box size and color intensity represents the relative importance of a feature. Useful for quickly identifying which features contribute most to model predictions.
- Parameters:
- Returns:
Plotly Figure containing interactive treemap with hover information. Larger boxes and darker green colors indicate higher importance.
- Return type:
Figure
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': False, 'extra': 'ignore', 'protected_namespaces': ()}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].