Skip to content

Commit 34e27a2

Browse files
authored
merge pr #734: document mtry and counts, add ?details_boost_tree_lightgbm doc
2 parents ba1c867 + 0ff7cda commit 34e27a2

12 files changed

+337
-26
lines changed

R/boost_tree_lightgbm.R

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#' Boosted trees via lightgbm
2+
#'
3+
#' [lightgbm::lgb.train()] creates a series of decision trees
4+
#' forming an ensemble. Each tree depends on the results of previous trees.
5+
#' All trees in the ensemble are combined to produce a final prediction.
6+
#'
7+
#' @includeRmd man/rmd/boost_tree_lightgbm.md details
8+
#'
9+
#' @name details_boost_tree_lightgbm
10+
#' @keywords internal
11+
NULL
12+
13+
# See inst/README-DOCS.md for a description of how these files are processed

inst/models.tsv

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"C5_rules" "classification" "C5.0" "rules"
1919
"cubist_rules" "regression" "Cubist" "rules"
2020
"decision_tree" "censored regression" "partykit" "censored"
21-
"decision_tree" "censored regression" "partykit" "bonsai"
2221
"decision_tree" "censored regression" "rpart" "censored"
2322
"decision_tree" "classification" "C5.0" NA
2423
"decision_tree" "classification" "partykit" "bonsai"
@@ -91,7 +90,6 @@
9190
"proportional_hazards" "censored regression" "glmnet" "censored"
9291
"proportional_hazards" "censored regression" "survival" "censored"
9392
"rand_forest" "censored regression" "partykit" "censored"
94-
"rand_forest" "censored regression" "partykit" "bonsai"
9593
"rand_forest" "classification" "partykit" "bonsai"
9694
"rand_forest" "classification" "randomForest" NA
9795
"rand_forest" "classification" "ranger" NA

man/details_boost_tree_lightgbm.Rd

Lines changed: 186 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/details_boost_tree_xgboost.Rd

Lines changed: 31 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/details_rule_fit_xrf.Rd

Lines changed: 36 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/rmd/boost_tree_lightgbm.Rmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,18 @@ boost_tree(
6969

7070
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.
7171

72+
### Interpreting `mtry`
73+
74+
```{r child = "template-mtry-prop.Rmd"}
75+
```
76+
7277
### Verbosity
7378

7479
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`.
7580

7681
## Examples
7782

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

8185
## References
8286

0 commit comments

Comments
 (0)