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

Supported algorithms

Black-box model explanaton

Model confidence metrics

Example outputs

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.3.2.tar.gz (66.6 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.3.2-py3-none-any.whl (81.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alibi-0.3.2.tar.gz
  • Upload date:
  • Size: 66.6 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.3.2.tar.gz
Algorithm Hash digest
SHA256 711b7a6eae27c80309d0968b11990e83b3e7063da919b1d76cf29eb40a61c618
MD5 042f25ff019c401e91a2986a49051ceb
BLAKE2b-256 2e55088f73334c16e9c15ffedd1ebdeef8299e6e203a999d8f5f4fc6a8b48474

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alibi-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 81.9 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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9202eb81e02e3306a4a796e4282da1bb0a5fd3975c0b3fe368c3e01461728593
MD5 e5241e2a714e3b6ecf18b42262c9a22d
BLAKE2b-256 00e754214fcf84a65339d6c993121da52edea52b56d39e6ec87ad30c755d665a

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