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
alternatively, if you want to include the optional experiment and test dependencies use:
pip install "mixmil[experiments,test]"
or if you want to adapt the code:
git clone https://github.com/AIH-SGML/mixmil.git
cd mixmil
pip install -e ".[experiments,test]"
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mixmil-0.1.1.tar.gz.
File metadata
- Download URL: mixmil-0.1.1.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9219e1e8dabeb1ec3610c0e8eeb328ffd27969aab503380e33d6713f6d87ee80
|
|
| MD5 |
d6c0c7a663e3223a477fb8e58124a899
|
|
| BLAKE2b-256 |
b0ddd18c3955d6a01bee412ff9c9b6e8b0ead2c9691969df123288c2b3d33055
|
File details
Details for the file mixmil-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mixmil-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ced901e46e4a36e0067f61cb330bedc7652e33c5cd213b19e20ccce4e0cf1a34
|
|
| MD5 |
93e4c751bb81f3327d5548eb0f4445a5
|
|
| BLAKE2b-256 |
78cac5b8d4d7b4ab14b831a2effa53396e6a06211d831247cf1360d1d5b4f69e
|