Skip to content

document mtry and counts, add ?details_boost_tree_lightgbm doc #734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 1, 2022
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
13 changes: 13 additions & 0 deletions R/boost_tree_lightgbm.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#' Boosted trees via lightgbm
#'
#' [lightgbm::lgb.train()] creates a series of decision trees
#' forming an ensemble. Each tree depends on the results of previous trees.
#' All trees in the ensemble are combined to produce a final prediction.
#'
#' @includeRmd man/rmd/boost_tree_lightgbm.md details
#'
#' @name details_boost_tree_lightgbm
#' @keywords internal
NULL

# See inst/README-DOCS.md for a description of how these files are processed
2 changes: 0 additions & 2 deletions inst/models.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"C5_rules" "classification" "C5.0" "rules"
"cubist_rules" "regression" "Cubist" "rules"
"decision_tree" "censored regression" "partykit" "censored"
"decision_tree" "censored regression" "partykit" "bonsai"
"decision_tree" "censored regression" "rpart" "censored"
"decision_tree" "classification" "C5.0" NA
"decision_tree" "classification" "partykit" "bonsai"
Expand Down Expand Up @@ -91,7 +90,6 @@
"proportional_hazards" "censored regression" "glmnet" "censored"
"proportional_hazards" "censored regression" "survival" "censored"
"rand_forest" "censored regression" "partykit" "censored"
"rand_forest" "censored regression" "partykit" "bonsai"
"rand_forest" "classification" "partykit" "bonsai"
"rand_forest" "classification" "randomForest" NA
"rand_forest" "classification" "ranger" NA
Expand Down
186 changes: 186 additions & 0 deletions man/details_boost_tree_lightgbm.Rd

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

37 changes: 31 additions & 6 deletions man/details_boost_tree_xgboost.Rd

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

38 changes: 36 additions & 2 deletions man/details_rule_fit_xrf.Rd

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

8 changes: 6 additions & 2 deletions man/rmd/boost_tree_lightgbm.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,18 @@ boost_tree(

Non-numeric predictors (i.e., factors) are internally converted to numeric. In the classification context, non-numeric outcomes (i.e., factors) are also internally converted to numeric.

### Interpreting `mtry`

```{r child = "template-mtry-prop.Rmd"}
```

### Verbosity

bonsai quiets much of the logging output from [lightgbm::lgb.train()] by default. With default settings, logged warnings and errors will still be passed on to the user. To print out all logs during training, set `quiet = TRUE`.

## Examples

<!-- TODO: update url to bonsai pkgdown site -->
The "Introduction to bonsai" article contains [examples](https://github.com/tidymodels/bonsai) of `boost_tree()` with the `"lightgbm"` engine.
The "Introduction to bonsai" article contains [examples](https://bonsai.tidymodels.org/articles/bonsai.html) of `boost_tree()` with the `"lightgbm"` engine.

## References

Expand Down
Loading