Skip to main content
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

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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file Xplique-0.1.0.tar.gz.

File metadata

  • Download URL: Xplique-0.1.0.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for Xplique-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7491d6dd29b715e1cce52bcc3609c455687ed4997d2727412e63b49077009954
MD5 bde809029629efec50a12ed7599bc0fc
BLAKE2b-256 39f02657184b568e777d65a1581b9715e03c400e92654275b8606b48b2dee888

See more details on using hashes here.

File details

Details for the file Xplique-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: Xplique-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 73.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for Xplique-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e335a98857464e26e9a7334f93ee8f110d895ccf90a772e6e49361dc174a0fa
MD5 47f5e877efb212141d3813fcc7ea96cb
BLAKE2b-256 64baab2e4b0fac32a3197f9503a874c8a0783aca3cfbb18494fe50a2d8e1fb11

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