xgboost_dmatrix {stackgbm} | R Documentation |
Create xgb.DMatrix object
Description
Create xgb.DMatrix object
Usage
xgboost_dmatrix(data, label = NULL, ...)
Arguments
data |
Matrix or file. |
label |
Labels (optional). |
... |
Additional parameters. |
Value
An xgb.DMatrix
object.
Examples
sim_data <- msaenet::msaenet.sim.binomial(
n = 100,
p = 10,
rho = 0.6,
coef = rnorm(5, mean = 0, sd = 10),
snr = 1,
p.train = 0.8,
seed = 42
)
xgboost_dmatrix(sim_data$x.tr, label = sim_data$y.tr)
xgboost_dmatrix(sim_data$x.te)
[Package stackgbm version 0.1.0 Index]