print.permshap {kernelshap}R Documentation

Prints "permshap" Object

Description

Prints "permshap" Object

Usage

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

Arguments

x

An object of class "permshap".

n

Maximum number of rows of SHAP values to print.

...

Further arguments passed from other methods.

Value

Invisibly, the input is returned.

See Also

permshap()

Examples

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

[Package kernelshap version 0.4.1 Index]