Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library(h2o)
- h2o.varimp_plot(model)
- library(h2o)
- library(lime)
- ## Train explainer
- explainer <- lime(train, model)
- ## Get explanations for a subset of samples
- explanation <- explain(train[1:5, ], explainer, n_features = 10)
- ## Plot global explanations
- plot_explanations(explanation)
- ## Plot local explanations
- plot_features(explanation)
Add Comment
Please, Sign In to add comment