Prints "shapviz" Object

# S3 method for shapviz
print(x, ...)

Arguments

x

An object of class "shapviz".

...

Further arguments passed from other methods.

Value

Invisibly, the input is returned.

See also

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))
x <- shapviz(S, X, baseline = 4)
x
#> 'shapviz' object representing 2 x 2 SHAP matrix. Top lines:
#> 
#>       x  y
#> [1,]  1 -1
#> [2,] -1  1