gpb.Dataset.set.reference: Set reference of 'gpb.Dataset'

Description Usage Arguments Value Examples

View source: R/gpb.Dataset.R

Description

If you want to use validation data, you should set reference to training data

Usage

1
gpb.Dataset.set.reference(dataset, reference)

Arguments

dataset

object of class gpb.Dataset

reference

object of class gpb.Dataset

Value

the dataset you passed in

Examples

1
2
3
4
5
6
7
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)

gpboost documentation built on July 14, 2021, 9:06 a.m.