treeshap.object {treeshap} | R Documentation |
treeshap results
Description
treeshap
object produced by treeshap
function.
Value
List consisting of four elements:
- shaps
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.- interactions
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 featuresa
andb
for observationi
. IsNULL
if interactions where not calculated (parameterinteractions
setFALSE
.)- 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.frame
ormatrix
. It is used by some of the plotting functions.
See Also
plot_contribution
, plot_feature_importance
, plot_feature_dependence
, plot_interaction