RELAX: Representation Learning Explainability
This repository contains code for RELAX, a framework for representation learning explainability. RELAX is based on perturbation-based explainability and work by measuring the change in the representation space as parts of the input are masked out.
When should you use RELAX? If your output is a vector representation and you have no label information.
More information can be found in the paper: Representation Learning Explainability (Wickstrøm et al., 2023), (Wickstrøm et al., 2022)
You can see RELAX used in practice in medical image retrieval in the paper: A clinically motivated self-supervised approach for content-based image retrieval of CT liver images (Wickstrøm et al., 2023), (Wickstrøm et al., 2022)
Installation
RELAX can be installed using pip as follows:
pip install relax-xai
Citation
If you find RELAX interesting and use it in your research, use the following Bibtex annotation to cite:
@article{wickstrom2023relax,
author = {Wickstr\o{}m, Kristoffer K. and Trosten, Daniel J. and L\o{}kse, Sigurd and Boubekki, Ahc\`{e}ne and Mikalsen, Karl \o{}yvind and Kampffmeyer, Michael C. and Jenssen, Robert},
title = {RELAX: Representation Learning Explainability},
journal = {International Journal of Computer Vision},
year = {2023},
volume = {131},
number = {6},
pages = {1584–1610},
url = {https://doi.org/10.1007/s11263-023-01773-2}
}
Metadata
Release files for relax-xai 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| relax_xai-0.0.5.tar.gz | 4.9 kB | Without provenance | Details for relax_xai-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| relax_xai-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for relax_xai-0.0.5-py3-none-any.whl |
Total release size: 10.8 kB
Release files / relax_xai-0.0.5.tar.gz
| Download URL | relax_xai-0.0.5.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecc1853ed4a41143a38ecce235e321d26627f9496a2419c4455149bc1142195f
|
|
BLAKE2b-256 checksum How to use checksums |
b8b5bbf05980a57496eb98ac4a80b8fd00971586efda67dc7efed1d5314ea974
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / relax_xai-0.0.5-py3-none-any.whl
| Download URL | relax_xai-0.0.5-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab62c0532b26e7a00ab4c2fbfbcef1291016ccdccdacf7dcac4c3fc8208db9cf
|
|
BLAKE2b-256 checksum How to use checksums |
91ff6ec0ee6115f37a16ccabf37b964d11d590db5a922a0f59e14fc1664542ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for relax-xai 0.0.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.