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

Show how to use alternative shaps (e.g. fasttreeshap, fastshap) #465

Closed eafpres closed 1 year ago

eafpres commented 1 year ago

Description of Problem: There are some other shap packages that improve performance etc. An example is fasttreeshap, another is fastshap. It's unclear how to configure these for use in Shapash.

Overview of the Solution: One solution is a small addition to the backends tutorial showing how to use e.g. fasttreeshap or fastshap.

Examples: I tried to use:

custom_backend = fasttreeshap.TreeExplainer(model = model, algorithm = "auto", njobs = -1)

but it fails with unknown backend.

Blockers:

Definition of Done: Updated tutorial docs

ThomasBouche commented 1 year ago

Hi, Thanks for your issue,

I add a tutorial for use Fasttreeshap and you can use another backend with the similar method. Does this tutorial help you use Fasttreeshap and shapash?

eafpres commented 1 year ago

@ThomasBouche This looks great, thanks! Now I understand how to substitute the contributions.