tidymodels/bonsai

parsnip wrappers for tree-based models

57

stars

216

commits

R

primary language

May 21, 2026

updated

bonsai.tidymodels.org

README

bonsai bonsai website

Lifecycle:
experimental CRAN
status Codecov test
coverage R-CMD-check

bonsai provides bindings for additional tree-based model engines for use with the parsnip package.

This package is based off of the work done in the treesnip repository by Athos Damiani, Daniel Falbel, and Roel Hogervorst. bonsai is the official CRAN version of the package; new development will reside here.

Installation

You can install the most recent official release of bonsai with:

install.packages("bonsai")

You can install the development version of bonsai from GitHub with:

# install.packages("pak")
pak::pak("tidymodels/bonsai")

Available Engines

The bonsai package provides additional engines for the models in the following table:

modelenginemode
boost_treelightgbmregression
boost_treelightgbmclassification
boost_treecatboostregression
boost_treecatboostclassification
decision_treepartykitregression
decision_treepartykitclassification
rand_forestpartykitregression
rand_forestpartykitclassification
rand_forestaorsfclassification
rand_forestaorsfregression

Note that the catboost engine package isn’t available on CRAN, and should thus be installed according to their documentation.

Code of Conduct

Please note that the bonsai project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Contributors

simonpcouch

151 commits

EmilHvitfeldt

45 commits

jameslamb

8 commits

topepo

7 commits

tidymodels/bonsai

parsnip wrappers for tree-based models

57

stars

216

commits

R

primary language

May 21, 2026

updated

bonsai.tidymodels.org

README

bonsai bonsai website

Lifecycle:
experimental CRAN
status Codecov test
coverage R-CMD-check

bonsai provides bindings for additional tree-based model engines for use with the parsnip package.

This package is based off of the work done in the treesnip repository by Athos Damiani, Daniel Falbel, and Roel Hogervorst. bonsai is the official CRAN version of the package; new development will reside here.

Installation

You can install the most recent official release of bonsai with:

install.packages("bonsai")

You can install the development version of bonsai from GitHub with:

# install.packages("pak")
pak::pak("tidymodels/bonsai")

Available Engines

The bonsai package provides additional engines for the models in the following table:

modelenginemode
boost_treelightgbmregression
boost_treelightgbmclassification
boost_treecatboostregression
boost_treecatboostclassification
decision_treepartykitregression
decision_treepartykitclassification
rand_forestpartykitregression
rand_forestpartykitclassification
rand_forestaorsfclassification
rand_forestaorsfregression

Note that the catboost engine package isn’t available on CRAN, and should thus be installed according to their documentation.

Code of Conduct

Please note that the bonsai project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Contributors

simonpcouch

151 commits

EmilHvitfeldt

45 commits

jameslamb

8 commits

topepo

7 commits

Languages

R

100.0%