powered by
Summarizes "kernelshap" Object
# S3 method for kernelshap summary(object, compact = FALSE, n = 2L, ...)
Invisibly, the input is returned.
An object of class "kernelshap".
Set to TRUE for a more compact summary.
TRUE
Maximum number of rows of SHAP values etc. to print.
Further arguments passed from other methods.
kernelshap()
fit <- lm(Sepal.Length ~ ., data = iris) s <- kernelshap(fit, iris[1:3, -1], bg_X = iris[, -1]) summary(s)
Run the code above in your browser using DataLab