Description Usage Arguments Value Examples
h2o shap waterfall plot
1 2 3 4 5 6 7 8 9 | h2o.shap.waterfall_plot(
shap_values,
X,
idx,
link = "",
centre = FALSE,
max.display = 20,
type = "bar"
)
|
shap_values |
shap value matrix from |
X |
original dataset |
idx |
index of the individual prediction |
link |
linking function ”, 'logit'. default NULL: identical, alternative logit: logit transform to probability |
centre |
whether shap.value centred at 0, probabilty centred at 0.5, default FALSE FALSE: add bias term back |
max.display |
number of variables to show in the plot |
type |
bar, arrow |
ggplot2 waterfall plot
1 2 3 | data(mtcars)
data(shap_values_mtcars)
h2o.shap.waterfall_plot(shap_values_mtcars, X = mtcars, idx = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.