plot shap
1 | plot_shap(xgb_model, mat_train, top_n = 7)
|
xgb_model |
xgboost object |
mat_train |
train data as a matrix |
top_n |
top n most influential variables to print |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.