Debian Codegraph @

man/xgboost-options.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/utils.R
3 \name{xgboost-options}
4 \alias{xgboost-options}
5 \title{XGBoost Options}
6 \description{
7 XGBoost offers an \link[base:options]{option setting} for controlling the behavior
8 of deprecated and removed function arguments.
9
10 Some of the arguments in functions like \code{\link[=xgb.train]{xgb.train()}} or \code{\link[=predict.xgb.Booster]{predict.xgb.Booster()}} been renamed
11 from how they were in previous versions, or have been removed.
12
13 In order to make the transition to newer XGBoost versions easier, some of these parameters are
14 still accepted but issue a warning when using them. \bold{Note that these warnings will become
15 errors in the future!!} - this is just a temporary workaround to make the transition easier.
16
17 One can optionally use 'strict mode' to turn these warnings into errors, in order to ensure
18 that code calling xgboost will still work once those are removed in future releases.
19
20 Currently, the only supported option is \code{xgboost.strict_mode}, which can be set to \code{TRUE} or
21 \code{FALSE} (default).
22
23 In addition to an R option, it can also be enabled through by setting environment variable
24 \code{XGB_STRICT_MODE=1}. If set, this environment variable will take precedence over the option.
25 }
26 \examples{
27 options("xgboost.strict_mode" = FALSE)
28 options("xgboost.strict_mode" = TRUE)
29 Sys.setenv("XGB_STRICT_MODE" = "1")
30 Sys.setenv("XGB_STRICT_MODE" = "0")
31 }