Distance explainer

Explainable AI tool for explaining models that create embeddings.

2
contributors
Get started
60 commitsLast commit ≈ 3 months ago1 star0 forks

Cite this software

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.

Keywords
Programming languages
  • Python 75%
  • Jupyter Notebook 23%
  • Shell 2%
License
</>Source code
Packages
pypi.org

Contributors

Related projects

Explainable Embeddings

What is happening in your machine-learned embedded spaces?

Updated 5 months ago
Finished

DIANNA - Deep Insight and Neural Networks Analysis

Explainable AI tool for scientists

Updated 10 months ago
Finished

Related software

DIANNA

DI

Deep Insight And Neural Network Analysis, DIANNA is the only Explainable AI, XAI library for scientists supporting Open Neural Network Exchange, ONNX - the de facto standard models format.

Updated 6 months ago
21 12