Skip to contents

Model explanation

Functional decomposition of model predictions

glex()
Global explanations for tree-based models.
glex_vi()
Variable Importance for Main and Interaction Terms

Visualisation

Visualize main and interaction terms

plot(<glex_vi>)
Plot glex Variable Importances
plot(<glex>) plot_main_effect() plot_threeway_effects() plot_twoway_effects()
Plot Prediction Components
plot_force()
Force plot of a single prediction
plot_pdp()
Partial Dependence Plot
plot_shap_decomposition() glex_explain()
Plot how a feature's SHAP value is assembled from components
plot_waterfall()
Waterfall plot of a single prediction
glex_options
Package options for glex plots

Utility functions

subset_components() subset_component_names()
Subset components
group_components()
Group features of a decomposition
dummy_groups()
Derive feature groups from the factors behind a dummy encoding
print(<glex>)
Print glex objects
theme_glex()
A ggplot2 theme for glex plots

Data

bike
Bikesharing data