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 transcriptomics dataset (~2.1 GB) is available for download; 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.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-plus 0.1.1
File Size Uploaded Provenance Actions
mimosa_illume_plus-0.1.1.tar.gz 22.0 kB With provenance Details for mimosa_illume_plus-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 46.2 kB

Release files / mimosa_illume_plus-0.1.1.tar.gz

Download URL mimosa_illume_plus-0.1.1.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e43defd781e5efa0727846017dc486554da841024a31c814355428318d2f60b2
BLAKE2b-256 checksum
How to use checksums
d549981738f8478528ef25b51482c638164525e9d9f1bb1569788e61a8c58dbf
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_plus-0.1.1-py3-none-any.whl

Download URL mimosa_illume_plus-0.1.1-py3-none-any.whl
Size 24.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
891813dc890d6512b0dc3f5e579fc63df6826b78b26416bc08282022fbb8ea8d
BLAKE2b-256 checksum
How to use checksums
bf7796eed3c597518c5836839580ed3d2eb85461180ac714ed65d585af1ab0a5
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-plus 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_plus-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