Skip to content

Fix SHAP Permutation explainer max_evals too low error#114

Merged
gmalbert merged 1 commit into
mainfrom
fix/gh-action-shap-analysis
Jul 27, 2026
Merged

Fix SHAP Permutation explainer max_evals too low error#114
gmalbert merged 1 commit into
mainfrom
fix/gh-action-shap-analysis

Conversation

@gmalbert

Copy link
Copy Markdown
Owner

This pull request updates the SHAP analysis script to improve how SHAP values are computed. The main change is to set the max_evals parameter dynamically based on the number of features, which can lead to more accurate and efficient SHAP value estimation.

SHAP analysis improvements:

  • In scripts/precompute/shap_analysis.py, the call to the SHAP explainer now passes a max_evals parameter calculated as 2 * X_shap.shape[1] + 1, allowing the number of evaluations to scale with the number of features.

@gmalbert
gmalbert merged commit 5511afe into main Jul 27, 2026
1 check passed
@gmalbert
gmalbert deleted the fix/gh-action-shap-analysis branch July 27, 2026 00:26
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

Successfully merging this pull request may close these issues.

1 participant