Skip to content

Commit

Permalink
Merge pull request #1021 from tidymodels/doc-xgboost-mtry-default-value
Browse files Browse the repository at this point in the history
Document what `mtry = NULL` means for xgboost
  • Loading branch information
hfrick authored Nov 6, 2023
2 parents f868e94 + cafc16e commit 975a703
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/boost_tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' to use for fitting.
#' @param mtry A number for the number (or proportion) of predictors that will
#' be randomly sampled at each split when creating the tree models
#' (specific engines only)
#' (specific engines only).
#' @param trees An integer for the number of trees contained in
#' the ensemble.
#' @param min_n An integer for the minimum number of data points
Expand Down
2 changes: 1 addition & 1 deletion man/boost_tree.Rd

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

2 changes: 1 addition & 1 deletion man/parsnip_update.Rd

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

2 changes: 2 additions & 0 deletions man/rmd/boost_tree_xgboost.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ This model has `r nrow(param)` tuning parameters:
param$item
```

For `mtry`, the default value of `NULL` translates to using all available columns.

## Translation from parsnip to the original package (regression)

```{r xgboost-reg}
Expand Down
2 changes: 2 additions & 0 deletions man/rmd/boost_tree_xgboost.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ This model has 8 tuning parameters:

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

For `mtry`, the default value of `NULL` translates to using all available columns.

## Translation from parsnip to the original package (regression)


Expand Down
2 changes: 1 addition & 1 deletion man/rule_fit.Rd

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

0 comments on commit 975a703

Please sign in to comment.