xgb.save.raw

0th

Percentile

Save xgboost model to R's raw vector, user can call xgb.load to load the model back from raw vector

Save xgboost model from xgboost or xgb.train

Usage
xgb.save.raw(model)
Arguments
model
the model object.
Aliases
  • xgb.save.raw
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, nthread = 2, nround = 2,objective = "binary:logistic")
raw <- xgb.save.raw(bst)
bst <- xgb.load(raw)
pred <- predict(bst, test$data)
Documentation reproduced from package xgboost, version 0.4-4, License: Apache License (== 2.0) | file LICENSE

Community examples

Looks like there are no examples yet.