Skip to main content

Code for the paper: Attention-based Multi-instance Mixed Models

Project description

MixMIL

Code for the paper: Attention-based Multi-instance Mixed Models

Please raise an issue for questions and bug-reports.

Installation

Install with:

pip install mixmil

or if you want to adapt the code:

git clone https://github.com/AIH-SGML/mixmil.git
cd mixmil
pip install -e .

To enable computations on GPU please follow the installation instructions of PyTorch and PyTorch Scatter. MixMIL works e.g. with PyTorch 2.1.

Experiments

See the notebooks in the experiments folder for examples on how to run the simulation and histopathology experiments.

Histopathology

Install anndata (pip install anndata) to run the notebook.

Download Data

To download the embeddings provided by the DSMIL authors, either:

  • Full embeddings: python scripts/dsmil_data_download.py
  • PCA reduced embeddings: Google Drive

Citation

@misc{engelmann2023attentionbased,
      title={Attention-based Multi-instance Mixed Models}, 
      author={Jan P. Engelmann and Alessandro Palma and Jakub M. Tomczak and Fabian J Theis and Francesco Paolo Casale},
      year={2023},
      eprint={2311.02455},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mixmil-0.1.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mixmil-0.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file mixmil-0.1.0.tar.gz.

File metadata

  • Download URL: mixmil-0.1.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for mixmil-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d92b263d2a33edd6df249c33c0af4ef326a2a108058d2e5a5a1a7aa9045f8d18
MD5 78a080075159ab653c1c5c5c2e7cbd29
BLAKE2b-256 9dec9f06aa478522f7e5cd49f898393bd69dd7813b4adc2d3af1ac6ba5b1f7af

See more details on using hashes here.

File details

Details for the file mixmil-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mixmil-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for mixmil-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef49bc3ddc9bcfbd1aa2d4c43ad703c498c36dae9a1a77b40243eb2bb3761c3c
MD5 648ce8f4803a45b583aab6e3a6978671
BLAKE2b-256 33cfde9028e44ef1cc1dfa78d30970fbcedfdccf8f602e01375b348bd0273285

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page