Construct Dataset explicitly
lgb.Dataset.construct(dataset)
dataset | Object of class |
---|
library(lightgbm) data(agaricus.train, package = "lightgbm") train <- agaricus.train dtrain <- lgb.Dataset(train$data, label = train$label) lgb.Dataset.construct(dtrain)