summary.shapviz: Summarizes "shapviz" Object

View source: R/methods.R

summary.shapvizR Documentation

Summarizes "shapviz" Object

Description

Summarizes "shapviz" Object

Usage

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

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.

Value

Invisibly, the input is returned.

See Also

shapviz()

Examples

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)

shapviz documentation built on Oct. 14, 2023, 5:07 p.m.