lgb.Dataset.set.reference | R Documentation |
lgb.Dataset
If you want to use validation data, you should set reference to training data
lgb.Dataset.set.reference(dataset, reference)
dataset |
object of class |
reference |
object of class |
the dataset you passed in
# create training Dataset
data(agaricus.train, package ="lightgbm")
train <- agaricus.train
dtrain <- lgb.Dataset(train$data, label = train$label)
# create a validation Dataset, using dtrain as a reference
data(agaricus.test, package = "lightgbm")
test <- agaricus.test
dtest <- lgb.Dataset(test$data, label = test$label)
lgb.Dataset.set.reference(dtest, dtrain)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.