Skip to main content

Explainable AI for Cancer Drug Response Prediction: Beyond Univariate Feature Attributions

Code and data for running ILLUME+, a novel post-hoc explanation method for cancer drug response prediction from transcriptomics tabular data.

The ILLUME+ example notebook uses the included data/gdsc/<drug_id>/processed.pkl.gz files. These contain the training, validation, and test data, feature names, and fitted scaler. Run it from the repository root or the examples directory.

The optional transcriptomics preparation notebook shows how to regenerate one drug's processed.pkl.gz from data/transcriptomics.feather and the included split files. It selects the drug ID, applies the training scaler to all three splits, and saves the resulting dictionaries. The Feather file is not included; obtain it from Zenodo and place it in data/ before running this preparation notebook.

Paper: Martino Ciaperoni, Margherita Lalli, Simone Piaggesi, Martina Varisco, Francesco Carli, Riccardo Guidotti, Dino Pedreschi, Francesco Raimondi, Fosca Giannotti. "Explainable AI for Cancer Drug Response Prediction: Beyond Univariate Feature Attributions." In ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) 2026. [link]

Installation

pip install mimosa-illume-plus

From a local clone, use pip install -e ".[dev]" to run the smoke test. Use pip install -e ".[notebook]" for both notebooks. To enable the commented-out black-box training example, install pip install -e ".[notebook,blackbox]".

Basic usage

import numpy as np
from illume_plus import ILLUMEplus

X_train = np.random.default_rng(1).normal(size=(8, 3)).astype("float32")
X_val = np.random.default_rng(2).normal(size=(4, 3)).astype("float32")
model = ILLUMEplus(latent_dim=2, rank_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)
assert W.shape == (4, 2, 3) and Z.shape == (4, 2)

Cite us

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

@inproceedings{ciaperoni2026explainable,
  title={Explainable AI for Cancer Drug Response Prediction: Beyond Univariate Feature Attributions},
  author={Ciaperoni, Martino and Lalli, Margherita and Piaggesi, Simone and Varisco, Martina and Carli, Francesco and Guidotti, Riccardo and Pedreschi, Dino and Raimondi, Francesco and Giannotti, Fosca},
  booktitle={Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2},
  pages={10749--10760},
  year={2026}
}

Metadata

Release files for mimosa-illume-plus 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-plus 0.1.0
File Size Uploaded Provenance Actions
mimosa_illume_plus-0.1.0.tar.gz 22.0 kB With provenance Details for mimosa_illume_plus-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 46.2 kB

Release files / mimosa_illume_plus-0.1.0.tar.gz

Download URL mimosa_illume_plus-0.1.0.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
92d429e85aa64a4c9aba590e0e23b2b9ed439e65e8d9d868a4eb15fb7af0c0ee
BLAKE2b-256 checksum
How to use checksums
7f4ccdd8a269958d1745151c306b28e22535edc22cc600deec650225087c6f81
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 13, 2026.

Transparency log

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

Download URL mimosa_illume_plus-0.1.0-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c396b067f79e2a0f485f183c7b0a48e1f1090361cf7a14f6566f780bf1eab655
BLAKE2b-256 checksum
How to use checksums
bfc33b6886e06cb9ff16d6ec8de79aacd43cc8558ff2e33a800bf4e303bcbecd
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 13, 2026.

Transparency log

Security for mimosa-illume-plus 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_plus-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 13, 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