powered by
Summarizes "shapviz" Object
# S3 method for shapviz summary(object, n = 2L, ...)
Invisibly, the input is returned.
An object of class "shapviz".
Maximum number of rows of SHAP values and feature values to show.
Further arguments passed from other methods.
shapviz()
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