Skip to content

Commit a7ae6bb

Browse files
committed
clean up NEWS, bump versions
1 parent 04d1b46 commit a7ae6bb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: bonsai
22
Title: Model Wrappers for Tree-Based Models
3-
Version: 0.2.0.9000
3+
Version: 0.2.1
44
Authors@R: c(
55
person("Daniel", "Falbel", , "[email protected]", role = "aut"),
66
person("Athos", "Damiani", , "[email protected]", role = "aut"),

NEWS.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# bonsai (developmental version)
1+
# bonsai 0.2.1
22

3-
bonsai 0.2.0.9000 is a dev version of the package and will be released with a different version number.
3+
* The most recent dials and parsnip releases introduced tuning integration for the lightgbm `num_leaves` engine argument! The `num_leaves` parameter sets the maximum number of nodes per tree, and is an [important tuning parameter for lightgbm](https://lightgbm.readthedocs.io/en/latest/Parameters-Tuning.html) ([tidymodels/dials#256](https://github.com/tidymodels/dials/pull/256), [tidymodels/parsnip#838](https://github.com/tidymodels/parsnip/pull/838)). With the newest version of each of dials, parsnip, and bonsai installed, tune this argument by marking the `num_leaves` engine argument for tuning when defining your model specification:
4+
5+
``` r
6+
boost_tree() %>% set_engine("lightgbm", num_leaves = tune())
7+
```
48

59
* Fixed a bug where lightgbm's parallelism argument `num_threads` was overridden when passed via `param` rather than as a main argument. By default, then, lightgbm will fit sequentially rather than with `num_threads = foreach::getDoParWorkers()`. The user can still set `num_threads` via engine arguments with `engine = "lightgbm"`:
610

@@ -12,7 +16,7 @@ Note that, when tuning hyperparameters with the tune package, detection of paral
1216

1317
* The `boost_tree` argument `stop_iter` now maps to the `lightgbm:::lgb.train()` argument `early_stopping_round` rather than its alias `early_stopping_rounds`. This does not affect parsnip's interface to lightgbm (i.e. via `boost_tree() %>% set_engine("lightgbm")`), though will introduce errors for code that uses the `train_lightgbm()` wrapper directly and sets the `lightgbm::lgb.train()` argument `early_stopping_round` by its alias `early_stopping_rounds` via `train_lightgbm()`'s `...`.
1418

15-
* Disallowed passing main model arguments as engine arguments to `set_engine("lightgbm", ...)` via aliases. That is, if a main argument is marked for tuning and a lightgbm alias is supplied as an engine argument, bonsai will now error, rather than supplying both to lightgbm and allowing the package to handle aliases. Users can still interface with non-main `boost_tree()` arguments via their lightgbm aliases (#53).
19+
* Disallowed passing main model arguments as engine arguments to `set_engine("lightgbm", ...)` via aliases. That is, if a main argument is marked for tuning and a lightgbm alias is supplied as an engine argument, bonsai will now error, rather than supplying both to lightgbm and allowing the package to handle aliases. Users can still interface with non-main `boost_tree()` arguments via their lightgbm aliases ([#53](https://github.com/tidymodels/bonsai/issues/53)).
1620

1721
# bonsai 0.2.0
1822

0 commit comments

Comments
 (0)