powered by
Simple wrapper for creating a xgboost matrix
xgb_mat(x, ..., y = NULL, split = NULL)
Input data
Other data to cbind
Label vector
Optional number between 0-1 indicating the desired split between train and test
A xgb.Dmatrix
# NOT RUN { xgb_mat(data.frame(x = rnorm(20), y = rnorm(20))) # }
Run the code above in your browser using DataLab