I am trying to use xgb.plot.tree
to look at my model that I generated with xgb.train
, but when I use xgb.plot.tree(model=xgb_model)
RStudio keeps crashing.
Is there a known issue with this function? My model looks fine, so I'm not sure what is happening. Here's my code, in case it helps.
xgb_model = xgb.train(params = list(objective="binary:logistic", eta=0.25, max.depth=3, nthread=3),
data = test_data.xgbdm,
nrounds = 2500,
early.stop.round = NULL)
xgb.plot.tree(model=xgb_model)