bonsai
0.4.1Model Wrappers for Tree-Based Models
Overview
Bindings for additional tree-based model engines for use with the 'parsnip' package. Models include gradient boosted decision trees with 'LightGBM' (Ke et al, 2017.), conditional inference trees and conditional random forests with 'partykit' (Hothorn and Zeileis, 2015. and Hothorn et al, 2006. doi:10.1198/106186006X133933), and accelerated oblique random forests with 'aorsf' (Jaeger et al, 2022 doi:10.5281/zenodo.7116854).
Bug Fixes
- Added
multi_predict()method for catboost engine, enabling efficient tuning of thetreesparameter (#115). - catboost tuning parameters were updates: (#119)
- Fixed a bug in
mtry; it used the parsnip namemtry_prop. - Enabled model arguments for
min_n,sample_size, andstop_iter.min_nis only enabled for GPU computations.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-17
- WARNING12 OK, 1 WARNING2026-10-01
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-04
Show 4 earlier changesHide 4 earlier changes
- WARNING12 OK, 1 WARNING2026-07-03
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 6 (5 internal)includes a package overview page
- Examples that run
- no examples
- Exported functions with examples
- 0%
- Documented parameters
- 50%
- Return-value docs
- 50%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 95%
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
16 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/tidymodels/bonsai on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-05-21 · The repository has a site deploy workflow
pkgdown site last built 2026-05-21
Show all practicesHide 2 practices
An outside contributor's pull request to this repository was written with an AI coding tool.
- Claude CodePull requests: 1 from outside contributors, first on 2026-04-18, 1 from forks
Dependencies
Installing bonsai adds 37 packages (17 with compiled code, 32 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, isoband 1.5 MB.
Code & Tests
People & History
Previously maintained by Simon Couch (0.1.0 to 0.3.2).
Pick two releases to compare their code metrics.
- 0.4.1Latest
- RR 4.6.0 released · 2026-04-24
- 0.4.02025-06-25 · diff ↗ ·
added 5 exports
predict_catboost_classification_class, predict_catboost_classification_prob, predict_catboost_classification_raw, predict_catboost_regression_numeric, train_catboost - RR 4.5.0 released · 2025-04-11
- 0.3.22025-02-12 · diff ↗
- 0.3.12024-07-23 · diff ↗
- 0.3.02024-06-24 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.2.12022-11-29 · diff ↗
- 0.2.02022-08-31 · diff ↗
- 0.1.02022-06-23
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-06-23
- Total releases
- 8 / 4 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Download size
- 65 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("bonsai")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.