prepare.ggplot.shap.data: Combine and melt feature values and SHAP contributions for...

Description Usage Arguments Details Value

Description

Conforms to data format required for ggplot functions.

Usage

1

Arguments

data_list

List containing 'data' and 'shap_contrib' returned by xgb.shap.data().

normalize

Whether to standardize feature values to have mean 0 and standard deviation 1 (useful for comparing multiple features on the same plot). Default FALSE.

Details

Internal utility function.

Value

A data.table containing the observation ID, the feature name, the feature value (normalized if specified), and the SHAP contribution value.


xgboost documentation built on April 22, 2021, 5:06 p.m.