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

Force plot cmap not applied when matplotlib=True #2767

Open
slobodaapl opened this issue Nov 15, 2022 · 0 comments
Open

Force plot cmap not applied when matplotlib=True #2767

slobodaapl opened this issue Nov 15, 2022 · 0 comments

Comments

@slobodaapl
Copy link

fig = shap.force_plot(base_value=explainer.expected_value[1], shap_values=shap_values[1], features=Xtr,
                          matplotlib=True, show=False, contribution_threshold=0.08, plot_cmap=["#f26522", "#44c5df"])

When matplotlib=True, the passed cmap values aren't used. I inspected the code and realize that it is not done at all in matplotlib when the figure is generated. It would be beneficial to provide a warning to output that matplotlib with cmap isn't supported, or for the feature to be added so that the color map is used.

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

1 participant