Skip to main content

XAI method to explain distances in embedded spaces

Project description

DOI workflow pypi badge

distance_explainer

XAI method to explain distances in embedded spaces.

overview schema

Installation

There are 2 ways to install distance_explainer. To install distance_explainer from PyPI (recommended) run:

pip install distance_explainer

To instead install distance_explainer from the GitHub repository, run:

git clone git@github.com:dianna-ai/distance_explainer.git
cd distance_explainer
python3 -m pip install .

How to use

See our tutorial how to use this package. In short:

image1 = np.random.random((100, 100, 3))
image2 = np.random.random((100, 100, 3))

image2_embedded = model(image2)
explainer = DistanceExplainer(axis_labels={2: 'channels'})
attribution_map = explainer.explain_image_distance(model, image1, image2_embedded)

Contributing

If you want to contribute to the development of distance_explainer, have a look at the contribution guidelines.

Credits

This package was created with Cookiecutter and the NLeSC/python-template.

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

distance_explainer-0.5.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

distance_explainer-0.5.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file distance_explainer-0.5.0.tar.gz.

File metadata

  • Download URL: distance_explainer-0.5.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for distance_explainer-0.5.0.tar.gz
Algorithm Hash digest
SHA256 9d42711d05b12aca74720cb113a02283eefbc92fc603415cfc604ad70c2ae5b4
MD5 b2a8becb535e0e368f2c525d678b94c5
BLAKE2b-256 244877dcd2dbecadcf0e0071323089df3b1fb32906edad3420840f03eab10042

See more details on using hashes here.

Provenance

The following attestation bundles were made for distance_explainer-0.5.0.tar.gz:

Publisher: release.yml on dianna-ai/distance_explainer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file distance_explainer-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for distance_explainer-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a03c160c66269dc4abd362263e11a941b50217df03aa02102c6321953cf95027
MD5 823b6f351993071d49f0b6a35f63c1a4
BLAKE2b-256 a0fdc23ebd41333afcc4513305aee6991b362cbf47a09bf08c2e627dc3751a60

See more details on using hashes here.

Provenance

The following attestation bundles were made for distance_explainer-0.5.0-py3-none-any.whl:

Publisher: release.yml on dianna-ai/distance_explainer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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