| treeshap.object {treeshap} | R Documentation |
treeshap results
Description
treeshap object produced by treeshap function.
Value
List consisting of four elements:
- shaps
A
data.framewith M columns, X rows (M - number of features, X - number of explained observations). Every row corresponds to SHAP values for a observation.- interactions
An
arraywith 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 featuresaandbfor observationi. IsNULLif interactions where not calculated (parameterinteractionssetFALSE.)- unified_model
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.- observations
Explained dataset.
data.frameormatrix. It is used by some of the plotting functions.
See Also
plot_contribution, plot_feature_importance, plot_feature_dependence, plot_interaction