lgb.Dataset.save | R Documentation |
lgb.Dataset
to a binary filePlease note that init_score
is not saved in binary file.
If you need it, please set it again after loading Dataset.
lgb.Dataset.save(dataset, fname)
dataset |
object of class |
fname |
object filename of output file |
the dataset you passed in
data(agaricus.train, package = "lightgbm")
train <- agaricus.train
dtrain <- lgb.Dataset(train$data, label = train$label)
lgb.Dataset.save(dtrain, tempfile(fileext = ".bin"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.