print.kernelshap: Prints "kernelshap" Object

View source: R/methods.R

print.kernelshapR Documentation

Prints "kernelshap" Object

Description

Prints "kernelshap" Object

Usage

## S3 method for class 'kernelshap'
print(x, n = 2L, ...)

Arguments

x

An object of class "kernelshap".

n

Maximum number of rows of SHAP values to print.

...

Further arguments passed from other methods.

Value

Invisibly, the input is returned.

See Also

kernelshap()

Examples

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

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