Description Usage Arguments Value Examples
Create a Sparse matrix for xgboost
1 | make_xgmat(data, label, ...)
|
data |
an object of class data.frame or tbl.df |
... |
optional arguements |
train_label |
a object of class numeric |
test_label |
a object of class numeric |
type |
a object of class string |
return a xgb.Matrix to the Global environment
1 | make_xgmat(traindat, train_label)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.