Skip to contents

Package

The figsr package.

figsr figsr-package
figsr: Fast Interpretable Greedy-Tree Sums for Tree Ensembles

Fitting

Fit a sum of trees from a formula, or a bootstrap ensemble of them.

figs()
Fit Fast Interpretable Greedy-Tree Sums (FIGS)
bagging_figs()
Bagging-FIGS: Ensemble of FIGS Models

Prediction

Tidy predictions from a fitted model.

predict(<figsr_fit>)
Predict Method for figsr_fit Models
predict(<bagging_figs_fit>)
Predict Method for bagging_figs_fit Models
predict_figs()
Internal / Parsnip Predict Bridge Function for figsr_fit

Rules and importance

Read a fit as IF-THEN rules and rank its predictors.

print(<figsr_fit>)
Print Method for figsr_fit Models
summary(<figsr_fit>)
Summary Method for figsr_fit Models
figsr_importance()
Calculate Variable Importance for a figsr_fit Model

Plotting

Draw a fit with ‘ggplot2’ or base graphics.

ggfigs() autoplot(<figsr_fit>)
'ggplot2' Graphics for figsr_fit Models
plot(<figsr_fit>)
Plot Method for figsr_fit Models

tidymodels integration

The ‘parsnip’ model specification, its engine bridge and tuning parameters.

figs_tree()
FIGS Model Specification for Parsnip
update(<figs_tree>)
Update a FIGS Model Specification
fit_figs()
Fitting Bridge for the Parsnip Interface
max_splits()
Dials Parameter for Maximum Splits
max_trees()
Dials Parameter for Maximum Trees

Data

Data sets used in the examples and articles.

pima_diabetes
Pima Indians Diabetes Database