Skip to content

Commit 9c477b5

Browse files
More sparse models documentation (#1254)
* mention that ranger doesn't care about sparse data * mention that lightgbm can use sparse data
1 parent b6e5848 commit 9c477b5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

man/rmd/boost_tree_lightgbm.Rmd

+5
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ To effectively enable bagging, the user would also need to set the `bagging_freq
8484

8585
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`.
8686

87+
## Sparse Data
88+
89+
```{r child = "template-uses-sparse-data.Rmd"}
90+
```
91+
8792
## Examples
8893

8994
The "Introduction to bonsai" article contains [examples](https://bonsai.tidymodels.org/articles/bonsai.html) of `boost_tree()` with the `"lightgbm"` engine.

man/rmd/rand_forest_ranger.Rmd

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ For `ranger` confidence intervals, the intervals are constructed using the form
7777
```{r child = "template-uses-sparse-data.Rmd"}
7878
```
7979

80+
While this engine supports sparse data as an input, it doesn't use it any differently than dense data. Hence there it no reason to convert back and forth.
81+
8082
## Saving fitted model objects
8183

8284
```{r child = "template-butcher.Rmd"}

0 commit comments

Comments
 (0)