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 IEEE International Conference on Data Mining (ICDM) 2025. [link]

Installation

pip install mimosa-illume

From a local clone, use pip install -e ".[dev]" to run the smoke test and quickstart. Use pip install -e ".[notebook]" for the example notebooks 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 working with the datasets tested in the paper: examples/illume_example.ipynb.

Full example working with scikit-learn datasets: examples/illume_example_sklearn.ipynb.

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.1

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.1
File Size Uploaded Provenance Actions
mimosa_illume-0.1.1.tar.gz 3.0 MB With provenance Details for mimosa_illume-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 3.0 MB

Release files / mimosa_illume-0.1.1.tar.gz

Download URL mimosa_illume-0.1.1.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
1e653977f6e498a7f0117b7a1c64f714310307175e289a1efec8513006381474
BLAKE2b-256 checksum
How to use checksums
08d73aafdb5316d0bf8d782158dcd5f60da29055bdcffb1aa01d909df6c583bf
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 14, 2026.

Transparency log

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

Download URL mimosa_illume-0.1.1-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa20b492bcede617bc74a60e34e487d7a4d6b4da1f3d5255110e38d966434027
BLAKE2b-256 checksum
How to use checksums
e5a8f388e2873eaf0ca6be32eaf49ec70b22260750dc20f688b59fed6cb7d9b9
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 14, 2026.

Transparency log

Security for mimosa-illume 0.1.1

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.1.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 14, 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.1 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