xgb.DMatrix.save

0th

Percentile

Save xgb.DMatrix object to binary file

Save xgb.DMatrix object to binary file

Usage
xgb.DMatrix.save(dmatrix, fname)
Arguments
dmatrix

the xgb.DMatrix object

fname

the name of the file to write.

Aliases
  • xgb.DMatrix.save
Examples
# NOT RUN {
data(agaricus.train, package='xgboost')
train <- agaricus.train
dtrain <- xgb.DMatrix(train$data, label=train$label)
xgb.DMatrix.save(dtrain, 'xgb.DMatrix.data')
dtrain <- xgb.DMatrix('xgb.DMatrix.data')
# }
Documentation reproduced from package xgboost, version 0.6-4, License: Apache License (== 2.0) | file LICENSE

Community examples

Looks like there are no examples yet.