Functions to extract SHAP values, feature values, the baseline, or SHAP interactions from a "(m)shapviz" object.
get_shap_values(object, ...)
# S3 method for class 'shapviz'
get_shap_values(object, ...)
# S3 method for class 'mshapviz'
get_shap_values(object, ...)
# Default S3 method
get_shap_values(object, ...)
get_feature_values(object, ...)
# S3 method for class 'shapviz'
get_feature_values(object, ...)
# S3 method for class 'mshapviz'
get_feature_values(object, ...)
# Default S3 method
get_feature_values(object, ...)
get_baseline(object, ...)
# S3 method for class 'shapviz'
get_baseline(object, ...)
# S3 method for class 'mshapviz'
get_baseline(object, ...)
# Default S3 method
get_baseline(object, ...)
get_shap_interactions(object, ...)
# S3 method for class 'shapviz'
get_shap_interactions(object, ...)
# S3 method for class 'mshapviz'
get_shap_interactions(object, ...)
# Default S3 method
get_shap_interactions(object, ...)
get_shap_values()
returns the matrix of SHAP values,
get_feature_values()
the data.frame
of feature values,
get_baseline()
the numeric baseline value, and
get_shap_interactions()
the SHAP interactions of the input.
For objects of class "mshapviz", these functions return lists of those elements.