Description Usage Format Details
shap value matrix of a h2o.GBM model, which takse mpg as label and the other variables as predictors using mtcars dataset the code to generate the data is as following: data(mtcars) library(h2o) library(dplyr)
1 |
An object of class data.frame
with 32 rows and 11 columns.
h2o.init() hex <- as.h2o(mtcars) model <- h2o.gbm(setdiff(colnames(mtcars), 'mpg'), mpg',min_rows = 3, training_frame = hex, nfolds = 3) shap_values_mtcars <- h2o.predict_contributions(model, hex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.