is.kernelshap | R Documentation |
Is object of class "kernelshap"?
is.kernelshap(object)
object |
An R object. |
TRUE
if object
is of class "kernelshap", and FALSE
otherwise.
kernelshap()
fit <- lm(Sepal.Length ~ ., data = iris)
s <- kernelshap(fit, iris[1:2, -1], bg_X = iris[, -1])
is.kernelshap(s)
is.kernelshap("a")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.