Learn R Programming

lightgbm (version 4.5.0)

lgb.Dataset.construct: Construct Dataset explicitly

Description

Construct Dataset explicitly

Usage

lgb.Dataset.construct(dataset)

Value

constructed dataset

Arguments

dataset

Object of class lgb.Dataset

Examples

Run this code
# \donttest{
setLGBMthreads(2L)
data.table::setDTthreads(1L)
data(agaricus.train, package = "lightgbm")
train <- agaricus.train
dtrain <- lgb.Dataset(train$data, label = train$label)
lgb.Dataset.construct(dtrain)
# }

Run the code above in your browser using DataLab