public interface TreeSHAP extends SHAP<smile.data.Tuple>
Modifier and Type | Method and Description |
---|---|
smile.data.formula.Formula |
formula()
Returns the formula associated with the model.
|
default double[] |
shap(smile.data.DataFrame data)
Returns the average of absolute SHAP values over a data frame.
|
default double[] |
shap(smile.data.Tuple x)
Returns the SHAP values.
|
CART[] |
trees()
Returns the classification/regression trees.
|
CART[] trees()
smile.data.formula.Formula formula()
default double[] shap(smile.data.Tuple x)
SHAP
p x k
, where p
is the number of
features and k
is the classes. The first k elements are
the SHAP values of first feature over k classes, respectively. The
rest features follow accordingly.default double[] shap(smile.data.DataFrame data)