Skip to main content

Algorithms for monitoring and explaining machine learning models

Project description

Alibi Logo

Build Status Documentation Status Python version PyPI version GitHub Licence Slack channel

Alibi is an open source Python library aimed at machine learning model inspection and interpretation. The initial focus on the library is on black-box, instance based model explanations.

Goals

  • Provide high quality reference implementations of black-box ML model explanation algorithms
  • Define a consistent API for interpretable ML methods
  • Support multiple use cases (e.g. tabular, text and image data classification, regression)
  • Implement the latest model explanation, concept drift, algorithmic bias detection and other ML model monitoring and interpretation methods

Installation

Alibi can be installed from PyPI:

pip install alibi

This will install alibi with all its dependencies:

  beautifulsoup4
  numpy
  Pillow
  pandas
  requests
  scikit-learn
  spacy
  scikit-image
  tensorflow

To run all the example notebooks, you may additionally run pip install alibi[examples] which will install the following:

  seaborn
  Keras

Examples

Anchor method applied to the InceptionV3 model trained on ImageNet:

Prediction: Persian Cat Anchor explanation
Persian Cat Persian Cat Anchor

Contrastive Explanation method applied to a CNN trained on MNIST:

Prediction: 4 Pertinent Negative: 9 Pertinent Positive: 4
mnist_orig mnsit_pn mnist_pp

Trust scores applied to a softmax classifier trained on MNIST:

trust_mnist

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

alibi-0.2.3.tar.gz (49.7 kB view details)

Uploaded Source

Built Distribution

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

alibi-0.2.3-py3-none-any.whl (62.4 kB view details)

Uploaded Python 3

File details

Details for the file alibi-0.2.3.tar.gz.

File metadata

  • Download URL: alibi-0.2.3.tar.gz
  • Upload date:
  • Size: 49.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for alibi-0.2.3.tar.gz
Algorithm Hash digest
SHA256 8a800a7e715e4d72b42c484b74c4ed18896b1c4c2673ce18f634d883f704da3d
MD5 91d864613d9e2afae08e08e4687d5bec
BLAKE2b-256 93812a491ca1f3af829b745b6693838d7e00e7b87a17e17855aaf7c4b5e41a9a

See more details on using hashes here.

File details

Details for the file alibi-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: alibi-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 62.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for alibi-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 942e2901ae8fee8c29c54576a0988e3e140962ad6e9ff97532ee77cac1dc62d9
MD5 eebd1b7351671802d43945ee03557613
BLAKE2b-256 a49e0a89bf36b8ed0012d69927df73bd11940c9917e41eb359c29ae3723babd2

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