【发布时间】:2020-08-12 18:48:34
【问题描述】:
这不是树的数量,因为我只训练了 25 棵树。它也不是变量的值。括号中的值的比例很明显,这是没有意义的,因为记录了许多变量。我检查了文档,没有任何解释。有什么想法或其他参考吗?
df1 <- xgb.train(data = X_train_dmat,
eta = 0.1,
max_depth = 5,
nround=25,
subsample = 0.5,
colsample_bytree = 0.5,
booster = 'gbtree',
objective = 'reg:squarederror',
nthread = 3
)
xgb.plot.multi.trees(model = df1,
features_keep = 5,
use.names=FALSE,
plot_width = NULL,
plot_height = NULL,
render = TRUE
)
【问题讨论】:
标签: r decision-tree xgboost