Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ inst/figs/
^README\.Rmd$
^[\.]?air\.toml$
^\.vscode$
^revdep$
^revdep$
^train_dir$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ revdep/library.noindex
revdep/data.sqlite
.httr-oauth
revdep/cloud.noindex/*
train_dir/
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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.1),
parsnip (>= 1.3.3.9000),
R (>= 4.1)
Imports:
cli,
Expand All @@ -52,9 +52,11 @@ Suggests:
tune
VignetteBuilder:
knitr
Remotes:
tidymodels/parsnip
Config/Needs/website: tidyverse/tidytemplate
Config/testthat/edition: 3
Config/usethis/last-upkeep: 2025-04-25
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# bonsai (development version)

* catboost tuning parameters were updates:
- Fixed a bug in `mtry`; it used the parsnip name `mtry_prop`.
- Enabled model arguments for `min_n`, `sample_size`, and `stop_iter`. `min_n` is only enabled for GPU computations.

# bonsai 0.4.0

## New Engines
Expand Down
29 changes: 28 additions & 1 deletion R/catboost_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,38 @@ make_boost_tree_catboost <- function() {
parsnip::set_model_arg(
model = "boost_tree",
eng = "catboost",
parsnip = "mtry_prop",
parsnip = "mtry",
original = "rsm",
func = list(pkg = "dials", fun = "mtry_prop"),
has_submodel = FALSE
)

parsnip::set_model_arg(
model = "boost_tree",
eng = "catboost",
parsnip = "min_n",
original = "min_data_in_leaf",
func = list(pkg = "dials", fun = "min_n"),
has_submodel = FALSE
)

parsnip::set_model_arg(
model = "boost_tree",
eng = "catboost",
parsnip = "sample_size",
original = "subsample",
func = list(pkg = "dials", fun = "sample_prop"),
has_submodel = FALSE
)

parsnip::set_model_arg(
model = "boost_tree",
eng = "catboost",
parsnip = "stop_iter",
original = "early_stopping_rounds",
func = list(pkg = "dials", fun = "stop_iter"),
has_submodel = FALSE
)
}

# nocov end
2 changes: 1 addition & 1 deletion man/bonsai-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.