Skip to main content

RELAX: a framework for explainability in representation learning.

Project description

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}
}

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

relax_xai-0.0.5.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

relax_xai-0.0.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file relax_xai-0.0.5.tar.gz.

File metadata

  • Download URL: relax_xai-0.0.5.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for relax_xai-0.0.5.tar.gz
Algorithm Hash digest
SHA256 ecc1853ed4a41143a38ecce235e321d26627f9496a2419c4455149bc1142195f
MD5 335876810b3e20f4a0077fa61c9499a9
BLAKE2b-256 b8b5bbf05980a57496eb98ac4a80b8fd00971586efda67dc7efed1d5314ea974

See more details on using hashes here.

File details

Details for the file relax_xai-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: relax_xai-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for relax_xai-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ab62c0532b26e7a00ab4c2fbfbcef1291016ccdccdacf7dcac4c3fc8208db9cf
MD5 af4ae6df7a696147e65d30110ae304b1
BLAKE2b-256 91ff6ec0ee6115f37a16ccabf37b964d11d590db5a922a0f59e14fc1664542ba

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