Debian Codegraph @

man/print.xgb.Booster.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/xgb.Booster.R
3 \name{print.xgb.Booster}
4 \alias{print.xgb.Booster}
5 \title{Print xgb.Booster}
6 \usage{
7 \method{print}{xgb.Booster}(x, ...)
8 }
9 \arguments{
10 \item{x}{An \code{xgb.Booster} object.}
11
12 \item{...}{Not used.}
13 }
14 \value{
15 The same \code{x} object, returned invisibly
16 }
17 \description{
18 Print information about \code{xgb.Booster}.
19 }
20 \examples{
21 data(agaricus.train, package = "xgboost")
22 train <- agaricus.train
23
24 bst <- xgb.train(
25 data = xgb.DMatrix(train$data, label = train$label, nthread = 1),
26 nrounds = 2,
27 params = xgb.params(
28 max_depth = 2,
29 nthread = 2,
30 objective = "binary:logistic"
31 )
32 )
33
34 attr(bst, "myattr") <- "memo"
35
36 print(bst)
37 }