| print.xgb.Booster | R Documentation |
Print information about xgb.Booster.
## S3 method for class 'xgb.Booster'
print(x, ...)
x |
An |
... |
Not used. |
The same x object, returned invisibly
data(agaricus.train, package = "xgboost")
train <- agaricus.train
bst <- xgb.train(
data = xgb.DMatrix(train$data, label = train$label, nthread = 1),
nrounds = 2,
params = xgb.params(
max_depth = 2,
nthread = 2,
objective = "binary:logistic"
)
)
attr(bst, "myattr") <- "memo"
print(bst)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.