Construct validation data according to training data
lgb.Dataset.create.valid(dataset, data, info = list(), ...)
dataset |
|
---|---|
data | a |
info | a list of information of the lgb.Dataset object |
... | other information to pass to |
constructed dataset
library(lightgbm) data(agaricus.train, package = "lightgbm") train <- agaricus.train dtrain <- lgb.Dataset(train$data, label = train$label) data(agaricus.test, package = "lightgbm") test <- agaricus.test dtest <- lgb.Dataset.create.valid(dtrain, test$data, label = test$label)