View source: R/shapPPsummary.R
PPshapsummary | R Documentation |
Summary plot using PPKernelSHAP
PPshapsummary(data_long,...)
data_long |
|
... |
arguments to be passed to methods |
A summary plot is used to see the aspects of important variables for each final node. The summary plot summarizes information about the independent variables that contributed the most to the model's prediction in the training data in the form of a density plot.
An object of the class ggplot
data(dataXY) testX <- dataXY[1,-1] Model <- PPTreereg(Y~., data = dataXY, DEPTH = 2) shap_long <- ppshapr_prep(Model, final.rule =5, method="simple") PPshapsummary(shap_long)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.