Loading topic
shap library picks an algorithm, and how to override that choice when you need 6 min readTreeExplainer is fast because it uses the structure of trees. Many models have no such structure, such as neural networks, support vector machines, stacked pipelines, or a function that calls an external service. SHAP still explains these, because it only needs to call the model. This chapter cove7 min readshap library returns, so you can slice it, check it, and pass it to plots witho4 min readExplanation object with TreeExplainer and that you know the baseline-plus-sum-of-SHAP-values identity from earlier chapters. You should also be comfortable slicing pandas DataFrames and NumPy arrays. The bar and beeswarm plots show how important a 7 min readTreeExplainer, that you know the baseline-plus-sum property from earlier chapters, and that you have read a beeswarm or scatter plot. It covers what a SHAP value hides when features act jointly, and how interaction values expose it.6 min readTreeExplainer or shap.Explainer, and read waterfall, beeswarm and scatter plots. It also assumes you know that a prediction equals the baseline plus the sum of its SHAP values. SHAP is a precise tool, but the n6 min read