Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.28 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.28 KB

DOI workflow pypi badge

distance_explainer

XAI method to explain distances in embedded spaces.

overview schema

Installation

To install distance_explainer from GitHub repository, do:

git clone [email protected]: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.