Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library(DiagrammeR)
- gr <- xgb.plot.tree(model=bst, trees=0:1, render=FALSE)
- export_graph(gr, 'tree.pdf', width=1500, height=1900)
- export_graph(gr, 'tree.png', width=1500, height=1900)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement