TST: Added test for xgb.plot.tree
This commit is contained in:
parent
d833038ba1
commit
408c3a62a8
@ -25,3 +25,7 @@ test_that("xgb.importance works", {
|
||||
xgb.dump(bst, 'xgb.model.dump', with.stats = T)
|
||||
importance <- xgb.importance(sparse_matrix@Dimnames[[2]], 'xgb.model.dump')
|
||||
})
|
||||
|
||||
test_that("xgb.plot.tree works", {
|
||||
xgb.plot.tree(agaricus.train$data@Dimnames[[2]], model = bst)
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user