Package: figsr 0.2.0

figsr: Fast Interpretable Greedy-Tree Sums for Tree Ensembles

Flexible, interpretable machine learning algorithm for additive tree sums (FIGS). Fits a sum of shallow classification and regression trees (CART) by greedily minimizing residual impurity, growing a new tree or deepening an existing one at each step, whichever reduces the residuals most. Supports regression and two-class classification, variable importance, bootstrap ensembling and seamless integration with 'parsnip' and 'tidymodels' workflows. The method is described in Tan et al. (2023) <doi:10.1073/pnas.2310151122>.

Authors:João Paulo Assis Bonifácio [aut, cre, cph], Geraldo Magela da Cruz Pereira [aut, cph], Pedro Mambelli Fernandes [aut, cph], João Vitor Andrade Alves de Souza [aut, cph]

figsr_0.2.0.tar.gz
figsr_0.2.0.zip(r-4.7-any)figsr_0.2.0.zip(r-4.6-any)figsr_0.2.0.zip(r-4.5-any)
figsr_0.2.0.tgz(r-4.6-any)figsr_0.2.0.tgz(r-4.5-any)
figsr_0.2.0.tar.gz(r-4.7-any)figsr_0.2.0.tar.gz(r-4.6-any)
figsr_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
figsr/json (API)

# Install 'figsr' in R:
install.packages('figsr', repos = c('https://bonijoao.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bonijoao/figsr/issues

Datasets:

On CRAN:

Conda:

4.78 score 1 stars 316 downloads 8 exports 38 dependencies

Last updated from:75fb251837. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK194
source / vignettesOK240
linux-releaseOK165
macos-releaseOK132
macos-oldrelOK118
windows-develOK99
windows-releaseOK115
windows-oldrelOK88
wasm-releaseOK153

Exports:bagging_figsfigsfigs_treefigsr_importancefit_figsmax_splitsmax_treespredict_figs

Dependencies:clicodetoolscpp11dialsDiceDesigndplyrfarvergenericsggplot2globalsgluegtablehardhatisobandlabelinglifecyclemagrittrparsnippillarpkgconfigprettyunitspurrrR6RColorBrewerrlangS7scalessfdsparsevctrsstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Getting Started with figsr
Introduction to FIGS | A regression fit | Variable importance | Visualizing the tree sum | Two-class classification | Missing values | Use inside tidymodels | Bootstrap ensembling | Limitations

Last update: 2026-09-17
Started: 2026-08-08

Missing Values in figsr: A Worked Example
The Pima Indians Diabetes Database | Fitting with and without na_method = "mia" | Coverage, not just accuracy | Reading the tree sum | Visualizing the tree sum | When to impute instead | References

Last update: 2026-09-17
Started: 2026-09-17