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.71k stars 331 forks source link

Support for LogisticRegression #475

Closed ThomasBouche closed 10 months ago

ThomasBouche commented 1 year ago

Shapash is supposed to be compatible with LogisticRegression. However, we get the following error:

from sklearn.linear_model import LogisticRegression
regressor = LogisticRegression().fit(Xtrain,ytrain)
xpl = SmartExplainer(
    model=regressor    
)

image

In addition, we need to review why this model is not tested in unit tests.

Python version :3.9

Shapash version :3.5.2

Operating System :Linux