xgb.dump

0th

Percentile

Save xgboost model to text file

Save a xgboost model to text file. Could be parsed later.

Usage
xgb.dump(model, fname, fmap = "")
Arguments
model
the model object.
fname
the name of the binary file.
fmap
feature map file representing the type of feature. Detailed description could be found at https://github.com/tqchen/xgboost/wiki/Binary-Classification#dump-model. See demo/ for walkthrough example in R, and http
Aliases
  • xgb.dump
Examples
data(agaricus.train, package='xgboost')
data(agaricus.test, package='xgboost')
train <- agaricus.train
test <- agaricus.test
bst <- xgboost(data = train$data, label = train$label, max.depth = 2,
               eta = 1, nround = 2,objective = "binary:logistic")
xgb.dump(bst, 'xgb.model.dump')
Documentation reproduced from package xgboost, version 0.3-1, License: Apache License (== 2.0) | file LICENSE

Community examples

Looks like there are no examples yet.