Package: e2tree 1.2.0

Massimo Aria

e2tree: Explainable Ensemble Trees

The Explainable Ensemble Trees 'e2tree' approach has been proposed by Aria et al. (2024) <doi:10.1007/s00180-022-01312-6>. It aims to explain and interpret decision tree ensemble models using a single tree-like structure. 'e2tree' is a new way of explaining an ensemble tree trained through 'randomForest' or 'xgboost' packages.

Authors:Massimo Aria [aut, cre, cph], Agostino Gnasso [aut, cph]

e2tree_1.2.0.tar.gz
e2tree_1.2.0.zip(r-4.7-x86_64)e2tree_1.2.0.zip(r-4.7-arm64)e2tree_1.2.0.zip(r-4.6-x86_64)e2tree_1.2.0.zip(r-4.6-arm64)
e2tree_1.2.0.tar.gz(r-4.7-arm64)e2tree_1.2.0.tar.gz(r-4.7-x86_64)e2tree_1.2.0.tar.gz(r-4.6-arm64)e2tree_1.2.0.tar.gz(r-4.6-x86_64)
e2tree_1.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
e2tree/json (API)

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

Bug tracker:https://github.com/massimoaria/e2tree/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:
  • credit - Credit Scoring Dataset

On CRAN:

Conda:

cppopenmp

3.68 score 24 scripts 461 downloads 22 exports 49 dependencies

Last updated from:d42b7b3252. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK166
linux-devel-x86_64OK181
source / vignettesOK245
linux-release-arm64OK170
linux-release-x86_64OK174
windows-devel-arm64OK285
windows-devel-x86_64OK152
windows-release-arm64OK251
windows-release-x86_64OK133
wasm-releaseOK123

Exports:as.rpartcreateDisMatrixe2splitse2treeePredTreeeValidationextract_terminal_nodesget_ensemble_predictionsget_ensemble_typeloiloi_permmeasuresnodesplot_e2treeplot_e2tree_clickplot_e2tree_visprint_e2tree_summaryproximityrocrpart2Treesave_e2tree_htmlvimp

Dependencies:apeclicodetoolscpp11digestdplyrfarverfuturefuture.applygenericsggplot2globalsgluegmpgtableisobandlabelinglatticelifecyclelistenvmagrittrMatrixnlmeparallellypartitionspillarpkgconfigpolynompurrrR6rbibutilsRColorBrewerRcppRdpackrlangrpartrpart.plotS7scalessetsstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Introduction to e2tree: Explainable Ensemble Trees
Overview | Installation | Workflow | Classification Example | Step 1: Prepare data and train ensemble | Step 2: Compute dissimilarity matrix | Step 3: Build the E2Tree | Step 4: Inspect the tree | Step 5: Visualization | Step 6: Prediction | Step 7: Variable importance | Regression Example | Validation of the E2Tree Structure | Association vs. Agreement | The Mantel Test | Divergence and Similarity Measures | Visualizing the Reconstruction | The Normalized Loss of Interpretability (nLoI) | LoI Decomposition: Diagnosing Reconstruction Quality | Permutation Test for LoI | Validation of the Regression Example | Comparison with Related Packages | Session Info

Last update: 2026-05-15
Started: 2026-05-15

Using e2tree with XGBoost, GBM, LightGBM, and CatBoost
Overview | XGBoost | Classification (iris) | Regression (mtcars) | GBM | Classification (iris, binary) | LightGBM | Adding a new backend

Last update: 2026-05-15
Started: 2026-05-15