lgb.Datasetto a binary file
Please note that
init_score is not saved in binary file.
If you need it, please set it again after loading Dataset.
object of class
object filename of output file
data(agaricus.train, package = "lightgbm") train <- agaricus.train dtrain <- lgb.Dataset(train$data, label = train$label) lgb.Dataset.save(dtrain, tempfile(fileext = ".bin"))#> [LightGBM] [Info] Saving data to binary file /tmp/Rtmp0u5Squ/filed5421bdfd0e.bin