SHAP Use SHAP to describe how a fitted predictive model maps inputs to outputs. Work from the modern API, make the explained output and background distribution explicit, and validate every explanation before interpreting it. This skill is aligned with SHAP 0.52.0 (released 2026-05-28). That release requires Python 3.12 or newer. The maintained examples were checked on Python 3.12.10 with SHAP 0.52.0, NumPy 2.5.3, pandas 3.0.6, scikit-learn 1.9.1, and matplotlib 3.11.2. Native tests cover small tree, exact, permutation, partition, linear, additive, kernel, text, and constant-image games; addit…