powered by
Prints "kernelshap" Object
# S3 method for kernelshap print(x, n = 2L, ...)
Invisibly, the input is returned.
An object of class "kernelshap".
Maximum number of rows of SHAP values 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]) s
Run the code above in your browser using DataLab