| treeshap.object | R Documentation |
treeshap object produced by treeshap function.
List consisting of four elements:
A data.frame with M columns, X rows (M - number of features, X - number of explained observations). Every row corresponds to SHAP values for a observation.
An array with dimensions (M, M, X) (M - number of features, X - number of explained observations). Every [, , i] slice is a symmetric matrix - SHAP Interaction values for a observation. [a, b, i] element is SHAP Interaction value of features a and b for observation i. Is NULL if interactions where not calculated (parameter interactions set FALSE.)
An object of type model_unified.object. Unified representation of a model for which SHAP values were calculated. It is used by some of the plotting functions.
Explained dataset. data.frame or matrix. It is used by some of the plotting functions.
treeshap,
plot_contribution, plot_feature_importance, plot_feature_dependence, plot_interaction
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.