xplainfi: Feature Importance and Statistical Inference for Machine Learning in R

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Burk, Lukas, Ewald, Fiona Katharina, Casalicchio, Giuseppe, Wright, Marvin N., Bischl, Bernd
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915867104641024
author Burk, Lukas
Ewald, Fiona Katharina
Casalicchio, Giuseppe
Wright, Marvin N.
Bischl, Bernd
author_facet Burk, Lukas
Ewald, Fiona Katharina
Casalicchio, Giuseppe
Wright, Marvin N.
Bischl, Bernd
contents We introduce xplainfi, an R package built on top of the mlr3 ecosystem for global, loss-based feature importance methods for machine learning models. Various feature importance methods exist in R, but significant gaps remain, particularly regarding conditional importance methods and associated statistical inference procedures. The package implements permutation feature importance, conditional feature importance, relative feature importance, leave-one-covariate-out, and generalizations thereof, and both marginal and conditional Shapley additive global importance methods. It provides a modular conditional sampling architecture based on Gaussian distributions, adversarial random forests, conditional inference trees, and knockoff-based samplers, which enable conditional importance analysis for continuous and mixed data. Statistical inference is available through multiple approaches, including variance-corrected confidence intervals and the conditional predictive impact framework. We demonstrate that xplainfi produces importance scores consistent with existing implementations across multiple simulation settings and learner types, while offering competitive runtime performance. The package is available on CRAN and provides researchers and practitioners with a comprehensive toolkit for feature importance analysis and model interpretation in R.
format Preprint
id arxiv_https___arxiv_org_abs_2603_15306
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle xplainfi: Feature Importance and Statistical Inference for Machine Learning in R
Burk, Lukas
Ewald, Fiona Katharina
Casalicchio, Giuseppe
Wright, Marvin N.
Bischl, Bernd
Machine Learning
We introduce xplainfi, an R package built on top of the mlr3 ecosystem for global, loss-based feature importance methods for machine learning models. Various feature importance methods exist in R, but significant gaps remain, particularly regarding conditional importance methods and associated statistical inference procedures. The package implements permutation feature importance, conditional feature importance, relative feature importance, leave-one-covariate-out, and generalizations thereof, and both marginal and conditional Shapley additive global importance methods. It provides a modular conditional sampling architecture based on Gaussian distributions, adversarial random forests, conditional inference trees, and knockoff-based samplers, which enable conditional importance analysis for continuous and mixed data. Statistical inference is available through multiple approaches, including variance-corrected confidence intervals and the conditional predictive impact framework. We demonstrate that xplainfi produces importance scores consistent with existing implementations across multiple simulation settings and learner types, while offering competitive runtime performance. The package is available on CRAN and provides researchers and practitioners with a comprehensive toolkit for feature importance analysis and model interpretation in R.
title xplainfi: Feature Importance and Statistical Inference for Machine Learning in R
topic Machine Learning
url https://arxiv.org/abs/2603.15306