summary.kernelshap: Summarizes "kernelshap" Object

View source: R/methods.R

summary.kernelshapR Documentation

Summarizes "kernelshap" Object

Description

Summarizes "kernelshap" Object

Usage

## S3 method for class 'kernelshap'
summary(object, compact = FALSE, n = 2L, ...)

Arguments

object

An object of class "kernelshap".

compact

Set to TRUE for a more compact summary.

n

Maximum number of rows of SHAP values etc. 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])
summary(s)

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