From 1fa1d3d260645f5d6db48aedbd4d22e45271f834 Mon Sep 17 00:00:00 2001 From: Emil Hvitfeldt Date: Wed, 12 Feb 2025 13:11:06 -0800 Subject: [PATCH 1/2] mention that ranger doesn't care about sparse data --- man/rmd/rand_forest_ranger.Rmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/man/rmd/rand_forest_ranger.Rmd b/man/rmd/rand_forest_ranger.Rmd index e7dfcde09..adc889ce3 100644 --- a/man/rmd/rand_forest_ranger.Rmd +++ b/man/rmd/rand_forest_ranger.Rmd @@ -77,6 +77,8 @@ For `ranger` confidence intervals, the intervals are constructed using the form ```{r child = "template-uses-sparse-data.Rmd"} ``` +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. + ## Saving fitted model objects ```{r child = "template-butcher.Rmd"} From d6ddd411a262055f34fdf2f9cbbbdbab593b1427 Mon Sep 17 00:00:00 2001 From: Emil Hvitfeldt Date: Wed, 12 Feb 2025 13:11:22 -0800 Subject: [PATCH 2/2] mention that lightgbm can use sparse data --- man/rmd/boost_tree_lightgbm.Rmd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/man/rmd/boost_tree_lightgbm.Rmd b/man/rmd/boost_tree_lightgbm.Rmd index ce63219c8..98f5d7fde 100644 --- a/man/rmd/boost_tree_lightgbm.Rmd +++ b/man/rmd/boost_tree_lightgbm.Rmd @@ -84,6 +84,11 @@ To effectively enable bagging, the user would also need to set the `bagging_freq 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`. +## Sparse Data + +```{r child = "template-uses-sparse-data.Rmd"} +``` + ## Examples The "Introduction to bonsai" article contains [examples](https://bonsai.tidymodels.org/articles/bonsai.html) of `boost_tree()` with the `"lightgbm"` engine.