[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Shapash usability with non-compatible models #488

Open
ThomasBouche opened this issue Sep 14, 2023 · 1 comment
Open

Improve Shapash usability with non-compatible models #488

ThomasBouche opened this issue Sep 14, 2023 · 1 comment
Assignees

Comments

@ThomasBouche
Copy link
Collaborator

Description of Problem:
If the user wants to add his contributions computed with a model other than those compatible with shapash, he must add a fake model to the model argument that is compatible with shapash, for example :

fake_model = catboost.CatBoostRegressor(verbose=False).fit(catboost.Pool(x_train, y_train))

xpl = SmartExplainer(model=fake_model)

xpl.compile(x=x, contributions=user_contributions)

Overview of the Solution:
Make the model optional, or raise the contributions parameter in the init, or whatever.

@guerinclement
Copy link
Collaborator
guerinclement commented Nov 23, 2023

Making the model optional happens to be trickier than expected.
I suggest to add to shapash the functionnality to build a fake model, given y_pred, y_proba and contributions.

edit: typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants