Construct Dataset explicitly

lgb.Dataset.construct(dataset)

Arguments

dataset

Object of class lgb.Dataset

Examples

library(lightgbm) data(agaricus.train, package = "lightgbm") train <- agaricus.train dtrain <- lgb.Dataset(train$data, label = train$label) lgb.Dataset.construct(dtrain)