Skip to main content

Explanations Go Linear: Post-hoc Explainability for Tabular Data with Interpretable Meta-Encoding

Code and data for running ILLUME, a novel post-hoc explanation method for tabular data that generate local interpretable surrogates from globally-trained meta-encoder networks.

To run the method, see the quickstart or the notebook. Run the notebook from the repository root so it can find the example datasets. The Appendix describes the experimental settings.

Paper: Simone Piaggesi, Riccardo Guidotti, Fosca Giannotti, and Dino Pedreschi. "Explanations go linear: Post-hoc explainability for tabular data with interpretable meta-encoding." In 2025 IEEE International Conference on Data Mining (ICDM), pp. 663-672. IEEE, 2025. [link]

Installation

pip install "mimosa-illume[model]"

From a local clone, use pip install -e ".[model,dev]" to run the smoke test and quickstart. Use pip install -e ".[notebook]" for the notebook or pip install -e ".[paper]" for the experiment scripts.

Basic usage

import numpy as np
from illume import ILLUME

X_train = np.random.default_rng(1).normal(size=(8, 3))
X_val = np.random.default_rng(2).normal(size=(4, 3))
model = ILLUME(latent_dim=2, max_epochs=1, batch_size=4)
model.fit(
    X=(X_train, X_val),
    idx_num_cat=[[0], [1], [2]],
    params_dict={"num_k": None, "l_rec": 0.0, "l_kld": 1.0,
                 "l_so": 0.0, "l_co": 0.0, "l_st": 0.0},
)
W, Z = model.transform(X_val)

Full example: examples/illume_example.ipynb.

Reproduce paper experiments

After installing the paper extra, run scripts from the repository root, for example:

python -m paper.scripts.train_eval_feature_importance --dataset breast --bb xgb --seed 0
python -m paper.scripts.baseline_eval_feature_importance --dataset breast --bb xgb --seed 0

Run a train_eval_*.py script for the same dataset, black-box model, and seed before a real-data baseline_eval_*.py script. The baseline scripts load the black-box model saved by the training scripts. The SENECA scripts generate their own data and can run independently.

Generated files are stored under paper/: blackboxes/ contains saved black-box estimators (.p), models/ contains ILLUME weights (.pt) and surrogate descriptions (.pkl), and results/ contains explanation and evaluation pickles (.pkl). These generated directories are excluded by .gitignore.

For the experiments with feature importance and real data:

For the experiments with decision rules and real data:

For the experiments with SENECA synthetic data:

Cite us

If you use the code in this repository, please consider citing us:

@inproceedings{piaggesi2025explanations,
  title={Explanations go linear: Post-hoc explainability for tabular data with interpretable meta-encoding},
  author={Piaggesi, Simone and Guidotti, Riccardo and Giannotti, Fosca and Pedreschi, Dino},
  booktitle={2025 IEEE International Conference on Data Mining (ICDM)},
  pages={663--672},
  year={2025},
  organization={IEEE}
}

Metadata

Release files for mimosa-illume 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mimosa-illume 0.1.0
File Size Uploaded Provenance Actions
mimosa_illume-0.1.0.tar.gz 2.8 MB With provenance Details for mimosa_illume-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mimosa-illume 0.1.0
File Interpreter ABI Platform Actions
mimosa_illume-0.1.0-py3-none-any.whl Python 3 none any Details for mimosa_illume-0.1.0-py3-none-any.whl

Total release size: 2.9 MB

Release files / mimosa_illume-0.1.0.tar.gz

Download URL mimosa_illume-0.1.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
9e0908ec5b6b8ac9eef0beda093dfb408180ee280dbffce47ee110a6665747b6
BLAKE2b-256 checksum
How to use checksums
9bd8847f35a2e3378d31d5fedd790cde8d0538ef704fcfd4198d7b142b77d91b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / mimosa_illume-0.1.0-py3-none-any.whl

Download URL mimosa_illume-0.1.0-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ba22926db357381677e6ebe961449d6d42f462c823ee34da33a3b219b02349a
BLAKE2b-256 checksum
How to use checksums
e4f3228b96310fada0dac19337459ada08b8c935085cc5e8cb1ffcd66d61123b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for mimosa-illume 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mimosa_illume-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page