https://github.com/tidymodels/bonsai
parsnip wrappers for tree-based models
https://github.com/tidymodels/bonsai
Last synced: about 2 months ago
JSON representation
parsnip wrappers for tree-based models
- Host: GitHub
- URL: https://github.com/tidymodels/bonsai
- Owner: tidymodels
- License: other
- Created: 2022-04-29T13:33:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-12T13:50:50.000Z (3 months ago)
- Last Synced: 2025-03-29T12:06:42.930Z (about 2 months ago)
- Language: R
- Homepage: https://bonsai.tidymodels.org
- Size: 2.78 MB
- Stars: 52
- Watchers: 6
- Forks: 8
- Open Issues: 13
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Support: .github/SUPPORT.md
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# bonsai
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://CRAN.R-project.org/package=bonsai)
[](https://app.codecov.io/gh/tidymodels/bonsai?branch=main)
[](https://github.com/tidymodels/bonsai/actions)bonsai provides bindings for additional tree-based model engines for use with the [parsnip](https://parsnip.tidymodels.org/) package.
This package is based off of the work done in the [treesnip repository](https://github.com/curso-r/treesnip) 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:
``` r
install.packages("bonsai")
```You can install the development version of bonsai from [GitHub](https://github.com/) with:
``` r
# install.packages("pak")
pak::pak("tidymodels/bonsai")
```
## Available Engines
The bonsai package provides additional engines for the models in the following table:
```{r, echo = FALSE, message = FALSE}
library(parsnip)parsnip_models <- get_from_env("models") %>%
setNames(., .) %>%
purrr::map_dfr(get_from_env, .id = "model")library(bonsai)
bonsai_models <- get_from_env("models") %>%
setNames(., .) %>%
purrr::map_dfr(get_from_env, .id = "model")dplyr::anti_join(
bonsai_models, parsnip_models,
by = c("model", "engine", "mode")
) %>%
knitr::kable()
```## Code of Conduct
Please note that the bonsai project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.