gpb.Dataset.set.reference {gpboost} | R Documentation |
Set reference of gpb.Dataset
Description
If you want to use validation data, you should set reference to training data
Usage
gpb.Dataset.set.reference(dataset, reference)
Arguments
dataset |
object of class |
reference |
object of class |
Value
the dataset you passed in
Examples
data(agaricus.train, package ="gpboost")
train <- agaricus.train
dtrain <- gpb.Dataset(train$data, label = train$label)
data(agaricus.test, package = "gpboost")
test <- agaricus.test
dtest <- gpb.Dataset(test$data, test = train$label)
gpb.Dataset.set.reference(dtest, dtrain)
[Package gpboost version 1.5.1.1 Index]