is.kernelshap: Check for kernelshap

View source: R/methods.R

is.kernelshapR Documentation

Check for kernelshap

Description

Is object of class "kernelshap"?

Usage

is.kernelshap(object)

Arguments

object

An R object.

Value

TRUE if object is of class "kernelshap", and FALSE otherwise.

See Also

kernelshap()

Examples

fit <- lm(Sepal.Length ~ ., data = iris)
s <- kernelshap(fit, iris[1:2, -1], bg_X = iris[, -1])
is.kernelshap(s)
is.kernelshap("a")

kernelshap documentation built on Sept. 11, 2024, 9:35 p.m.