plot_shap_bar {nestedcv} | R Documentation |
SHAP importance bar plot
Description
SHAP importance bar plot
Usage
plot_shap_bar(
shap,
x,
sort = TRUE,
labels = c("Negative", "Positive"),
top = NULL
)
Arguments
shap |
a matrix of SHAP values |
x |
a matrix or dataframe of feature values containing only features
values from the training data. The rows must match rows in |
sort |
Logical whether to sort predictors by mean absolute SHAP value |
labels |
Character vector of labels for directionality |
top |
Sets a limit on the number of variables plotted or |
Value
A ggplot2 plot
[Package nestedcv version 0.7.9 Index]