Interface TreeSHAP
- All Known Implementing Classes:
AdaBoost, GradientTreeBoost, RandomForest, RandomForest
-
Method Details
-
trees
-
formula
-
shap
Description copied from interface:SHAPReturns the SHAP values. For regression, the length of SHAP values is same as the number of features. For classification, SHAP values are ofp x k, wherepis the number of features andkis the classes. The first k elements are the SHAP values of first feature over k classes, respectively. The rest features follow accordingly. -
shap
Returns the average of absolute SHAP values over a data frame.- Parameters:
data- the data.- Returns:
- the average of absolute SHAP values.
-