From SHAP to EBM: Explain your Gradient Boosting Models in Python
summary
Compares SHAP and Explainable Boosting Machine applied to XGBoost on a 5,000-sample diamonds dataset, reporting mean absolute error ≈ $319 (avg price ≈ $88k). Demonstrates that tree algorithms can get SHAP exact for trees but SHAP needs careful conditional sampling and can mislead with correlated features; EBM builds per-feature trees with EBM exact additive per-feature explanations, allows limited pairwise interactions, and trades some accuracy for interpretability. Includes live Python snippets using shap and interpret-ml and a 5,000-sample diamonds demo.
AI-written summary · about
