Guest User

Untitled

a guest
Apr 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. library(h2o)
  2. h2o.varimp_plot(model)
  3.  
  4. library(h2o)
  5. library(lime)
  6.  
  7. ## Train explainer
  8. explainer <- lime(train, model)
  9.  
  10. ## Get explanations for a subset of samples
  11. explanation <- explain(train[1:5, ], explainer, n_features = 10)
  12.  
  13. ## Plot global explanations
  14. plot_explanations(explanation)
  15.  
  16. ## Plot local explanations
  17. plot_features(explanation)
Add Comment
Please, Sign In to add comment