IBM AI Explainability 360
Project description
AI Explainability 360 (v0.2.0)
The AI Explainability 360 toolkit is an open-source library that supports interpretability and explainability of datasets and machine learning models. The AI Explainability 360 Python package includes a comprehensive set of algorithms that cover different dimensions of explanations along with proxy explainability metrics.
The AI Explainability 360 interactive experience provides a gentle introduction to the concepts and capabilities by walking through an example use case for different consumer personas. The tutorials and example notebooks offer a deeper, data scientist-oriented introduction. The complete API is also available.
There is no single approach to explainability that works best. There are many ways to explain: data vs. model, directly interpretable vs. post hoc explanation, local vs. global, etc. It may therefore be confusing to figure out which algorithms are most appropriate for a given use case. To help, we have created some guidance material and a chart that can be consulted.
We have developed the package with extensibility in mind. This library is still in development. We encourage the contribution of your explainability algorithms and metrics. To get started as a contributor, please join the AI Explainability 360 Community on Slack by requesting an invitation here. Please review the instructions to contribute code here.
Supported explainability algorithms
Data explanation
- ProtoDash (Gurumoorthy et al., 2019)
- Disentangled Inferred Prior VAE (Kumar et al., 2018)
Local post-hoc explanation
- ProtoDash (Gurumoorthy et al., 2019)
- Contrastive Explanations Method (Dhurandhar et al., 2018)
- Contrastive Explanations Method with Monotonic Attribute Functions (Luss et al., 2019)
- LIME (Ribeiro et al. 2016, Github)
- SHAP (Lundberg, et al. 2017, Github)
Local direct explanation
- Teaching AI to Explain its Decisions (Hind et al., 2019)
Global direct explanation
- Boolean Decision Rules via Column Generation (Light Edition) (Dash et al., 2018)
- Generalized Linear Rule Models (Wei et al., 2019)
Global post-hoc explanation
- ProfWeight (Dhurandhar et al., 2018)
Supported explainability metrics
- Faithfulness (Alvarez-Melis and Jaakkola, 2018)
- Monotonicity (Luss et al., 2019)
Setup
Supported Configurations:
OS | Python version |
---|---|
macOS | 3.6 |
Ubuntu | 3.6 |
Windows | 3.6 |
(Optional) Create a virtual environment
AI Explainability 360 requires specific versions of many Python packages which may conflict with other projects on your system. A virtual environment manager is strongly recommended to ensure dependencies may be installed safely. If you have trouble installing the toolkit, try this first.
Conda
Conda is recommended for all configurations though Virtualenv is generally interchangeable for our purposes. Miniconda is sufficient (see the difference between Anaconda and Miniconda if you are curious) and can be installed from here if you do not already have it.
Then, to create a new Python 3.6 environment, run:
conda create --name aix360 python=3.6
conda activate aix360
The shell should now look like (aix360) $
. To deactivate the environment, run:
(aix360)$ conda deactivate
The prompt will return back to $
or (base)$
.
Note: Older versions of conda may use source activate aix360
and source deactivate
(activate aix360
and deactivate
on Windows).
Installation
Clone the latest version of this repository:
(aix360)$ git clone https://github.com/Trusted-AI/AIX360
If you'd like to run the examples and tutorial notebooks, download the datasets now and place them in their respective folders as described in aix360/data/README.md.
Then, navigate to the root directory of the project which contains setup.py
file and run:
(aix360)$ pip install -e .
Using AI Explainability 360
The examples
directory contains a diverse collection of jupyter notebooks
that use AI Explainability 360 in various ways. Both examples and tutorial notebooks illustrate
working code using the toolkit. Tutorials provide additional discussion that walks
the user through the various steps of the notebook. See the details about
tutorials and examples here.
Citing AI Explainability 360
A technical description of AI Explainability 360 is available in this paper. Below is the bibtex entry for this paper.
@misc{aix360-sept-2019,
title = "One Explanation Does Not Fit All: A Toolkit and Taxonomy of AI Explainability Techniques",
author = {Vijay Arya and Rachel K. E. Bellamy and Pin-Yu Chen and Amit Dhurandhar and Michael Hind
and Samuel C. Hoffman and Stephanie Houde and Q. Vera Liao and Ronny Luss and Aleksandra Mojsilovi\'c
and Sami Mourad and Pablo Pedemonte and Ramya Raghavendra and John Richards and Prasanna Sattigeri
and Karthikeyan Shanmugam and Moninder Singh and Kush R. Varshney and Dennis Wei and Yunfeng Zhang},
month = sept,
year = {2019},
url = {https://arxiv.org/abs/1909.03012}
}
AIX360 Videos
- Introductory video to AI Explainability 360 by Vijay Arya and Amit Dhurandhar, September 5, 2019 (35 mins)
Acknowledgements
AIX360 is built with the help of several open source packages. All of these are listed in setup.py and some of these include:
- Tensorflow https://www.tensorflow.org/about/bib
- Pytorch https://github.com/pytorch/pytorch
- scikit-learn https://scikit-learn.org/stable/about.html
License Information
Please view both the LICENSE file and the folder supplementary license present in the root directory for license information.
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
Built Distribution
File details
Details for the file aix360-0.2.1.tar.gz
.
File metadata
- Download URL: aix360-0.2.1.tar.gz
- Upload date:
- Size: 85.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 974a0313a6d20d2899a7e11c1efb99d9f85018f10a1d1aecbfb75dc1885c22e8 |
|
MD5 | b78cb27d41614106048a18c70e6d5701 |
|
BLAKE2b-256 | e2e6a3dd79a986e3957cbafe5db1dae2d0daf8397d764a63e1767452e55c732a |
File details
Details for the file aix360-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: aix360-0.2.1-py3-none-any.whl
- Upload date:
- Size: 58.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49273d2c28e400f1ce69dca4566308d14e87f470fc8521ec8ae04f11ad58c585 |
|
MD5 | 8a1a2e1117f6e2b76e8c3349ff9ae241 |
|
BLAKE2b-256 | 5587abddf944665b614030451bf00f3ceb3b2511f721ad195c023be567b9f726 |