Jupyter notebook toolbox for model interpretability/explainability
Project description
ExpyBox
ExpyBox is a Jupyter notebook toolbox for model interpretability/explainability. It lets you create interactive Jupyter notebooks to explain your model.
Usage
This package is meant to be used inside of Jupyter notebook, other usage makes little to no sense. First you need to import and instantiate the ExpyBox class:
from expybox import ExpyBox
expybox = ExpyBox(train_data, predict_function, kernel_globals=globals())
Now you can use the supported interpretability methods like this (for list of supported methods refer to the documentation):
expybox.lime()
which creates a form:
In this form you can set up explained instance (if it's necessary for the selected method)
and method parameters. After clicking on Run Interact
the method will be executed
and its output will be shown below the form.
You can then change the parameters or the explained instance and press Run Interact
again which will rerun the method with new parameters.
You can find an example Jupyter notebook in examples
folder.
Instalation
Because of alibi package ExpyBox requires 64-bit Python 3.7 or higher. It is also recommended to create separate virtual enviroment - you can use Pythons venv.
Otherwise the installation process is the same as for other packages, just use pip:
pip install expybox
Project details
Release history Release notifications | RSS feed
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 expybox-1.0.1.tar.gz
.
File metadata
- Download URL: expybox-1.0.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8068cac94756468c66e8b6ee41b6c017ad3fdbe2fad059d0c8807ce2dd4ad10 |
|
MD5 | 430d67a4c4b114d82a1c5b439fcb6ca9 |
|
BLAKE2b-256 | 411370ea076692b836ee3bda687e678200d55d51e6bf754ed837d0f7d4590de0 |
File details
Details for the file expybox-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: expybox-1.0.1-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13483f1e45b38bbc11319e3e2380b16dd1fe39b8ce0b382fa9b8b092ec6d691f |
|
MD5 | 1fb6a0b53d3fe641fce3972d298b7e1c |
|
BLAKE2b-256 | 3f0d81721d5acfda485fa4cda93f746a47b197943a2f2a9e5852877397e6d704 |