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

FIX: initialize ShapPlotData with preprocessed feature names #381

Open
wants to merge 4 commits into
base: 2.1.x
Choose a base branch
from

Conversation

j-ittner
Copy link
Member

@j-ittner j-ittner commented Feb 1, 2024

This PR addresses a bug in relation to shap plot values: The ShapPlotData object returned by method ModelInspector.shap_plot_data() used the original feature set instead of the preprocessed feature set.

In cases where preprocessing changes the number or names of features, this led to a mismatch between the feature values and the shape values.

@j-ittner j-ittner added the bug Something isn't working label Feb 1, 2024
@j-ittner j-ittner added this to the 2.1.2 milestone Feb 1, 2024
@j-ittner j-ittner requested a review from mtsokol February 1, 2024 07:38
@j-ittner j-ittner self-assigned this Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants