Save lgb.Dataset
to a binary file
lgb.Dataset.save(dataset, fname)
dataset | object of class |
---|---|
fname | object filename of output file |
passed dataset
library(lightgbm) data(agaricus.train, package = "lightgbm") train <- agaricus.train dtrain <- lgb.Dataset(train$data, label = train$label) lgb.Dataset.save(dtrain, "data.bin")