summary.kernelshap | R Documentation |
Summarizes "kernelshap" Object
## S3 method for class 'kernelshap'
summary(object, compact = FALSE, n = 2L, ...)
object |
An object of class "kernelshap". |
compact |
Set to |
n |
Maximum number of rows of SHAP values etc. to print. |
... |
Further arguments passed from other methods. |
Invisibly, the input is returned.
kernelshap()
fit <- lm(Sepal.Length ~ ., data = iris)
s <- kernelshap(fit, iris[1:3, -1], bg_X = iris[, -1])
summary(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.