dimnames.shapviz | R Documentation |
This implies to use colnames(x)
to get the column names of the SHAP and feature
matrix (and optional SHAP interaction values).
## S3 method for class 'shapviz'
dimnames(x)
x |
An object of class "shapviz". |
Dimnames of the SHAP matrix.
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))
x <- shapviz(S, X, baseline = 4)
dimnames(x)
colnames(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.