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 for Feature Importance Local Plot Failure After Global Plot #605

Conversation

guillaume-vignal
Copy link
Collaborator

Fixes #604

Description:

This PR addresses a bug in Shapash where plotting the feature importance local plot after the feature importance global plot leads to a failure due to missing value computations. The issue arises when the necessary values for the local plot are not computed or stored after rendering the global plot.

Changes Made:

  • Ensure Value Computation:
    Adjusted the workflow to ensure that all required values for the local feature importance plot are computed and stored when plotting the local plot.

  • Separation of Computations:
    Modified the logic to ensure that both the global and local plots can be rendered independently or sequentially without causing any conflicts or missing computations.

@guillaume-vignal guillaume-vignal self-assigned this Oct 24, 2024
@guillaume-vignal guillaume-vignal added the bug Something isn't working label Oct 24, 2024
@guillaume-vignal guillaume-vignal merged commit d4f783c into MAIF:master Oct 25, 2024
@guillaume-vignal guillaume-vignal deleted the feature/fix_feature_impotance_local branch October 25, 2024 09:50
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.

Bug in Feature Importance Plot: Local Plot Fails After Global Plot Due to Missing Value Computation
2 participants