【发布时间】:2021-08-27 20:46:10
【问题描述】:
几周以来,我一直在使用官方软件包在 R 中使用 LightGBM。最近我在他们的指南中查看 API 并遇到了我没有使用过的函数 lgb.Dataset.construct。但我一直在做的事情似乎工作正常,所以也许这个电话是不必要的?手册页 (https://lightgbm.readthedocs.io/en/latest/R/reference/lgb.Dataset.construct.html) 并不是特别有用,只是说它“明确地构造 [s] 数据集”并给出示例:
data(agaricus.train, package = "lightgbm")
train <- agaricus.train
dtrain <- lgb.Dataset(train$data, label = train$label)
lgb.Dataset.construct(dtrain)
我的代码看起来很像这样,但没有最后一行,就像我说的那样一直运行良好(据我所知)
【问题讨论】: