Package: glex 0.7.0.9000

Marvin N. Wright

glex: Global Explanations for Tree-Based Models

Global explanations for tree-based models by decomposing regression or classification functions into the sum of main components and interaction components of arbitrary order. Calculates SHAP values and q-interaction SHAP for all values of q for tree-based models such as xgboost.

Authors:Marvin N. Wright [aut, cre], Joseph Theo Meyer [aut], Munir Hiabu [aut], Lukas Burk [aut], Jinyang Liu [aut]

glex_0.7.0.9000.tar.gz
glex_0.7.0.9000.zip(r-4.7-x86_64)glex_0.7.0.9000.zip(r-4.7-arm64)glex_0.7.0.9000.zip(r-4.6-x86_64)glex_0.7.0.9000.zip(r-4.6-arm64)glex_0.7.0.9000.zip(r-4.5-x86_64)
glex_0.7.0.9000.tgz(r-4.6-x86_64)glex_0.7.0.9000.tgz(r-4.6-arm64)glex_0.7.0.9000.tgz(r-4.5-x86_64)glex_0.7.0.9000.tgz(r-4.5-arm64)
glex_0.7.0.9000.tar.gz(r-4.7-arm64)glex_0.7.0.9000.tar.gz(r-4.7-x86_64)glex_0.7.0.9000.tar.gz(r-4.6-arm64)glex_0.7.0.9000.tar.gz(r-4.6-x86_64)
glex_0.7.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
glex/json (API)

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

Bug tracker:https://github.com/plantedml/glex/issues

Pkgdown/docs site:https://plantedml.com

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • bike - Bikesharing data

On CRAN:

Conda:

cpp

5.66 score 7 stars 36 scripts 12 exports 31 dependencies

Last updated from:ccffa061ba. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK158
linux-devel-x86_64OK184
source / vignettesOK244
linux-release-arm64OK162
linux-release-x86_64OK190
macos-release-arm64OK147
macos-release-x86_64OK443
macos-oldrel-arm64OK132
macos-oldrel-x86_64OK266
windows-devel-arm64OK303
windows-devel-x86_64OK226
windows-release-arm64OK259
windows-release-x86_64OK171
windows-oldrel-x86_64OK151
wasm-releaseOK114

Exports:dummy_groupsglexglex_explainglex_vigroup_componentsplot_main_effectplot_pdpplot_threeway_effectsplot_twoway_effectssubset_component_namessubset_componentstheme_glex

Dependencies:backportscheckmateclicodetoolscpp11crayondata.tablefarverforeachggplot2gluegtablehmsisobanditeratorsjsonlitelabelinglifecyclepkgconfigprettyunitsprogressR6RColorBrewerRcpprlangS7scalesscicovctrsviridisLitewithr

Categorical features: native factors, one-hot groups and semantic groups
Native factors | Dummy encoding fragments the decomposition | Re-assembling the factor with group_components() | Other encoding schemes | Semantic groups

Last update: 2026-10-03
Started: 2026-10-03

glex

Last update: 2023-02-24
Started: 2023-02-24

Readme and manuals

Help Manual

Help pageTopics
Plot Prediction Componentsautoplot.glex plot_main_effect plot_threeway_effects plot_twoway_effects
Plot glex Variable Importancesautoplot.glex_vi
Bikesharing databike
Derive feature groups from the factors behind a dummy encodingdummy_groups
Global explanations for tree-based models.glex glex.default glex.ranger glex.rpf glex.xgb.Booster
Explain a single predictionglex_explain
Package options for glex plotsglex_options
Variable Importance for Main and Interaction Termsglex_vi
Group features of a decompositiongroup_components
Partial Dependence Plotplot_pdp
Print glex objectsprint.glex
Subset componentssubset_components subset_component_names
A ggplot2 theme for glex plotstheme_glex