Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R-package/R/xgb.train.R
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ xgb.train <- function(params = xgb.params(), data, nrounds, evals = list(),
#' range: \eqn{[0, \infty)}
#'
#' Note: should only pass one of `gamma` or `min_split_loss`. Both refer to the same parameter and there's thus no difference between one or the other.
#' @param max_depth (for Tree Booster) (default=6)
#' @param max_depth (for Tree Booster) (default=6, type=int32)
#' Maximum depth of a tree. Increasing this value will make the model more complex and more likely to overfit. 0 indicates no limit on depth. Beware that XGBoost aggressively consumes memory when training a deep tree. `"exact"` tree method requires non-zero value.
#'
#' range: \eqn{[0, \infty)}
Expand Down Expand Up @@ -579,9 +579,9 @@ xgb.train <- function(params = xgb.params(), data, nrounds, evals = list(),
#' - Choices: `"depthwise"`, `"lossguide"`
#' - `"depthwise"`: split at nodes closest to the root.
#' - `"lossguide"`: split at nodes with highest loss change.
#' @param max_leaves (for Tree Booster) (default=0)
#' @param max_leaves (for Tree Booster) (default=0, type=int32)
#' Maximum number of nodes to be added. Not used by `"exact"` tree method.
#' @param max_bin (for Tree Booster) (default=256)
#' @param max_bin (for Tree Booster) (default=256, type=int32)
#' - Only used if `tree_method` is set to `"hist"` or `"approx"`.
#' - Maximum number of discrete bins to bucket continuous features.
#' - Increasing this number improves the optimality of splits at the cost of higher computation time.
Expand Down
6 changes: 3 additions & 3 deletions R-package/man/xgb.params.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions R-package/man/xgboost.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions doc/parameter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The following parameters can be set in the global scope, using :py:func:`xgboost
******************
General Parameters
******************
* ``booster`` [default= ``gbtree`` ]
* ``booster`` [default= ``gbtree``]

- Which booster to use. Can be ``gbtree``, ``gblinear`` or ``dart``; ``gbtree`` and ``dart`` use tree based models while ``gblinear`` uses linear functions.

Expand Down Expand Up @@ -90,7 +90,7 @@ Parameters for Tree Booster
- Minimum loss reduction required to make a further partition on a leaf node of the tree. The larger ``gamma`` is, the more conservative the algorithm will be. Note that a tree where no splits were made might still contain a single terminal node with a non-zero score.
- range: [0,∞]

* ``max_depth`` [default=6]
* ``max_depth`` [default=6, type=int32]

- Maximum depth of a tree. Increasing this value will make the model more complex and more likely to overfit. 0 indicates no limit on depth. Beware that XGBoost aggressively consumes memory when training a deep tree. ``exact`` tree method requires non-zero value.
- range: [0,∞]
Expand Down Expand Up @@ -198,11 +198,11 @@ Parameters for Tree Booster
- ``depthwise``: split at nodes closest to the root.
- ``lossguide``: split at nodes with highest loss change.

* ``max_leaves`` [default=0]
* ``max_leaves`` [default=0, type=int32]

- Maximum number of nodes to be added. Not used by ``exact`` tree method.

* ``max_bin``, [default=256]
* ``max_bin``, [default=256, type=int32]

- Only used if ``tree_method`` is set to ``hist`` or ``approx``.
- Maximum number of discrete bins to bucket continuous features.
Expand Down
Loading