SHAP interprets a prediction by treating input descriptors as a coalition and estimating each descriptor’s contribution through Shapley values. A surrogate explanation makes a complex model easier to understand. section 6.4.3
Use SHAP to inspect model behavior at several levels:
- Prefer SHAP for tree ensembles when finite-difference derivatives are unreliable because predictions remain constant within leaves. section 6.4.3
RNA-binding model
Fit an XGBoost classifier, create shap.TreeExplainer(model), calculate values for up to 5,000 molecules, and visualize descriptor effects globally and locally.





