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