Skip to content

Commit 975a703

Browse files
authored
Merge pull request #1021 from tidymodels/doc-xgboost-mtry-default-value
Document what `mtry = NULL` means for xgboost
2 parents f868e94 + cafc16e commit 975a703

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

R/boost_tree.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#' to use for fitting.
2222
#' @param mtry A number for the number (or proportion) of predictors that will
2323
#' be randomly sampled at each split when creating the tree models
24-
#' (specific engines only)
24+
#' (specific engines only).
2525
#' @param trees An integer for the number of trees contained in
2626
#' the ensemble.
2727
#' @param min_n An integer for the minimum number of data points

man/boost_tree.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/parsnip_update.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/rmd/boost_tree_xgboost.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ This model has `r nrow(param)` tuning parameters:
2424
param$item
2525
```
2626

27+
For `mtry`, the default value of `NULL` translates to using all available columns.
28+
2729
## Translation from parsnip to the original package (regression)
2830

2931
```{r xgboost-reg}

man/rmd/boost_tree_xgboost.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ This model has 8 tuning parameters:
2525

2626
- `stop_iter`: # Iterations Before Stopping (type: integer, default: Inf)
2727

28+
For `mtry`, the default value of `NULL` translates to using all available columns.
29+
2830
## Translation from parsnip to the original package (regression)
2931

3032

man/rule_fit.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)