Skip to main content

Explanations toolbox for Tensorflow 2

Project description

Xplique


Xplique is a Python module dedicated to explainability. It provides several submodules to learn more about your tensorflow models (โ‰ฅ2.1). The three main submodules are Attributions Methods, Explainability Metrics and Feature Visualization tools.

The Attributions Method submodule implements various methods, with explanations, examples and links to official papers.

Soon, the Explainability Metrics submodule will implement the current metrics related to explainability. These evaluations used in conjunction with the attribution methods allow to measure the quality of the explanations.

Soon, the Feature Visualization submodule will allow to represent neurons, channels or layers by maximizing an input.

The package is released under MIT license.

Example of Attributions Methods results

Contents

Installing

The library has been tested on Linux, MacOSX and Windows and relies on the following Python modules:

  • Tensorflow (>=2.1)
  • Numpy (>=1.18)

You can install Xplique using pip with:

pip install xplique

Getting Started

let's start with a simple example, by computing Grad-CAM for several images (or a complete dataset) on a trained model.

from xplique.attributions import GradCAM

# load images, labels and model
# ...

method = GradCAM(model)
explanations = method.explain(images, labels)

Notebooks

Core features

Attributions Methods

Concept-based Methods

Metrics

  • Aocp
  • Fidelity correlation
  • Irof
  • Pixel Flipping
  • Stability

Feature Visualization

  • Vanilla

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

Xplique-0.1.0.tar.gz (45.8 kB view hashes)

Uploaded Source

Built Distribution

Xplique-0.1.0-py3-none-any.whl (73.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page