MAIF / shapash

🔅 Shapash: User-friendly Explainability and Interpretability to Develop Reliable and Transparent Machine Learning Models
https://maif.github.io/shapash/
Apache License 2.0
2.74k stars 335 forks source link

How can I extract the plot data from `xpl.plot.features_importance()`? #450

Closed AkshitChugh787 closed 1 year ago

AkshitChugh787 commented 1 year ago

I am on Shapash version 2.3.0 By running the command to_pandas(), I get the summary_df for all the local data points like

features_1, contribution_1 ... features_n, contribution_n

I want the importance of the global features from my machine learning model like I get the plot by running the command xpl.plot.features_importance(). What is the method or function to get the global Features Importance data points?

Thanks

ThomasBouche commented 1 year ago

Hi, you can have features importance with:

xpl.features_imp

is this what you want?

AkshitChugh787 commented 1 year ago

Thanks, it worked!