Package: xplainfi 1.1.0

Lukas Burk

xplainfi: Feature Importance Methods for Global Explanations

Provides a consistent interface for common feature importance methods as described in Ewald et al. (2024) <doi:10.1007/978-3-031-63797-1_22>, including permutation feature importance (PFI), conditional and relative feature importance (CFI, RFI), leave one covariate out (LOCO), and Shapley additive global importance (SAGE), as well as feature sampling mechanisms to support conditional importance methods.

Authors:Lukas Burk [aut, cre, cph]

xplainfi_1.1.0.tar.gz
xplainfi_1.1.0.zip(r-4.7)xplainfi_1.1.0.zip(r-4.6)xplainfi_1.1.0.zip(r-4.5)
xplainfi_1.1.0.tgz(r-4.6-any)xplainfi_1.1.0.tgz(r-4.5-any)
xplainfi_1.1.0.tar.gz(r-4.7-any)xplainfi_1.1.0.tar.gz(r-4.6-any)
xplainfi_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
xplainfi/json (API)

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

Bug tracker:https://github.com/mlr-org/xplainfi/issues

Pkgdown/docs site:https://mlr-org.github.io

On CRAN:

Conda:

feature-importanceinterpretable-machine-learningmachine-learningmlr3statistical-inferencevariable-importance

6.37 score 6 stars 13 scripts 237 downloads 31 exports 35 dependencies

Last updated from:5ae1b5fb02 (on v1.1.0). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK235
source / vignettesOK310
linux-release-x86_64OK230
macos-release-arm64OK129
macos-oldrel-arm64OK159
windows-develOK171
windows-releaseOK185
windows-oldrelOK177
wasm-releaseOK153

Exports:CFIcheck_groupsConditionalARFSamplerConditionalCtreeSamplerConditionalGaussianSamplerConditionalKNNSamplerConditionalSAGEConditionalSamplerFeatureImportanceMethodFeatureSamplerKnockoffGaussianSamplerKnockoffSamplerLOCOMarginalPermutationSamplerMarginalReferenceSamplerMarginalSAGEMarginalSamplerPerturbationImportancePFIRFIrsmp_all_testSAGEsim_dgp_confoundedsim_dgp_correlatedsim_dgp_ewaldsim_dgp_independentsim_dgp_interactionssim_dgp_mediatedWVIMwvim_design_matrixxplain_opt

Dependencies:backportsbbotkcheckmateclicodetoolsdata.tabledigestevaluatefuturefuture.applyglobalslatticelgrlistenvMatrixmatrixStatsmiraimlbenchmlr3mlr3fselectmlr3measuresmlr3miscmoocoremvtnormnanonextpalmerpenguinsparadoxparallellyPRROCR6rbibutilsRdpackrlangstabmuuid

Feature Samplers
Setup | Base Class: FeatureSampler | Key Properties | Permutation Sampler | Marginal Reference Sampler | Conditional Samplers | Gaussian Conditional Sampler | ARF Sampler | Ctree Conditional Sampler | kNN Conditional Sampler | Example 1: All-numeric conditioning (Euclidean distance) | Example 2: Mixed-type conditioning (Gower distance) | Knockoff Samplers | Gaussian Knockoffs | Summary

Last update: 2026-02-26
Started: 2025-10-27

Getting Started with xplainfi
Core Concepts | Basic Example | Permutation Feature Importance (PFI) | Leave-One-Covariate-Out (LOCO) | Feature Samplers | Detailed Scoring Information | Observation-wise losses and importances | Statistical Inference | Using Pre-trained Learners | Parallelization | Example with future | Example with mirai

Last update: 2026-02-26
Started: 2024-10-14

Simulation Settings for Feature Importance Methods
Introduction | Overview of Simulation Settings | 1. Correlated Features DGP | Mathematical Model | Causal Structure | Usage Example | 2. Mediated Effects DGP | 3. Confounding DGP | 4. Interaction Effects DGP | 5. Independent Features DGP (Baseline) | Expected Behavior | 6. Ewald et al. (2024) DGP

Last update: 2026-01-29
Started: 2025-10-09