Save xgb.DMatrix object to binary file
xgb.DMatrix.save(dmatrix, fname)
dmatrix | the |
---|---|
fname | the name of the file to write. |
data(agaricus.train, package='xgboost') train <- agaricus.train dtrain <- xgb.DMatrix(train$data, label=train$label) xgb.DMatrix.save(dtrain, 'xgb.DMatrix.data')#> [1] TRUE#> [11:52:55] 6513x126 matrix with 143286 entries loaded from xgb.DMatrix.data#> [1] TRUE