xgb_mat {wactor} | R Documentation |
Simple wrapper for creating a xgboost matrix
xgb_mat(x, ..., y = NULL, split = NULL)
x |
Input data |
... |
Other data to cbind |
y |
Label vector |
split |
Optional number between 0-1 indicating the desired split between train and test |
A xgb.Dmatrix
xgb_mat(data.frame(x = rnorm(20), y = rnorm(20)))