Learn R Programming

shapviz (version 0.9.7)

summary.shapviz: Summarizes "shapviz" Object

Description

Summarizes "shapviz" Object

Usage

# S3 method for shapviz
summary(object, n = 2L, ...)

Value

Invisibly, the input is returned.

Arguments

object

An object of class "shapviz".

n

Maximum number of rows of SHAP values and feature values to show.

...

Further arguments passed from other methods.

See Also

shapviz()

Examples

Run this code
S <- matrix(c(1, -1, -1, 1), ncol = 2, dimnames = list(NULL, c("x", "y")))
X <- data.frame(x = c("a", "b"), y = c(100, 10))
object <- shapviz(S, X, baseline = 4)
summary(object)

Run the code above in your browser using DataLab