make_xgmat: Create a Sparse matrix for xgboost

Description Usage Arguments Value Examples

Description

Create a Sparse matrix for xgboost

Usage

1
make_xgmat(data, label, ...)

Arguments

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

Value

return a xgb.Matrix to the Global environment

Examples

1
make_xgmat(traindat, train_label)

jasdumas/dumas documentation built on May 18, 2019, 4:49 p.m.