Skip to content

Commit

Permalink
CRAN release v0.2.0 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch authored Aug 31, 2022
1 parent 24aa1bf commit 5f3787b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
8 changes: 3 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: bonsai
Title: Model Wrappers for Tree-Based Models
Version: 0.1.0.9000
Version: 0.2.0
Authors@R: c(
person("Daniel", "Falbel", , "[email protected]", role = "aut"),
person("Athos", "Damiani", , "[email protected]", role = "aut"),
Expand All @@ -22,7 +22,7 @@ License: MIT + file LICENSE
URL: https://bonsai.tidymodels.org/, https://github.com/tidymodels/bonsai
BugReports: https://github.com/tidymodels/bonsai/issues
Depends:
parsnip (>= 1.0.0)
parsnip (>= 1.0.1)
Imports:
dials,
dplyr,
Expand All @@ -43,12 +43,10 @@ Suggests:
rsample,
testthat (>= 3.0.0),
tune
Remotes:
tidymodels/parsnip#768
VignetteBuilder:
knitr
Config/Needs/website: tidyverse/tidytemplate
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.0
RoxygenNote: 7.2.1
10 changes: 7 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bonsai 0.1.0.9000 (developmental version)
# bonsai 0.2.0

* Enabled bagging with lightgbm via the `sample_size` argument to `boost_tree`
(#32 and tidymodels/parsnip#768). The following docs now available in
Expand All @@ -8,8 +8,6 @@
>
> To effectively enable bagging, the user would also need to set the `bagging_freq` argument to lightgbm. `bagging_freq` defaults to 0, which means bagging is disabled, and a `bagging_freq` argument of `k` means that the booster will perform bagging at every `k`th boosting iteration. Thus, by default, the `sample_size` argument would be ignored without setting this argument manually. Other boosting libraries, like xgboost, do not have an analogous argument to `bagging_freq` and use `k = 1` when the analogue to `bagging_fraction` is in $(0, 1)$. _bonsai will thus automatically set_ `bagging_freq = 1` _in_ `set_engine("lightgbm", ...)` if `sample_size` (i.e. `bagging_fraction`) is not equal to 1 and no `bagging_freq` value is supplied. This default can be overridden by setting the `bagging_freq` argument to `set_engine()` manually.
* Fixed error in lightgbm with engine argument `objective = "tweedie"` and response values less than 1.

* Corrected mapping of the `mtry` argument in `boost_tree` with the lightgbm
engine. `mtry` previously mapped to the `feature_fraction` argument to
`lgb.train` but was documented as mapping to an argument more closely
Expand All @@ -19,7 +17,13 @@
This means that code that set `feature_fraction_bynode` as an argument to
`set_engine()` will now error, and the user can now pass `feature_fraction`
to `set_engine()` without raising an error.

* Fixed error in lightgbm with engine argument `objective = "tweedie"` and
response values less than 1.

* A number of documentation improvements, increases in testing coverage, and
changes to internals in anticipation of the 4.0.0 release of the lightgbm
package. Thank you to `@jameslamb` for the effort and expertise!

# bonsai 0.1.0

Expand Down
7 changes: 1 addition & 6 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
## R CMD check results

0 ERRORs | 0 WARNINGs | 1 NOTE

1 NOTE on "checking CRAN incoming feasibility" check:

* Partially results from this submission being an initial release.
* Also flags "Possibly misspelled words in DESCRIPTION", noting author names cited in the package Description. Per past guidance on the R-package-devel mailing list, we've left these notes unaddressed.
0 ERRORs | 0 WARNINGs | 0 NOTEs

0 comments on commit 5f3787b

Please sign in to comment.