Generic explainability architecture for text machine learning models
Project description
Text Explainability
A generic explainability architecture for explaining text machine learning models.
Marcel Robeer, 2021
Installation
Install from PyPI via pip3 install text_explainability
. Alternatively, clone this repository and install via pip3 install -e .
or locally run python3 setup.py install
.
Example usage
Run lines in example_usage.py
to see an example of how the package can be used.
Maintenance
Contributors
- Marcel Robeer
- Michiel Bron
Todo
Tasks yet to be done:
- Add data sampling methods (e.g. representative subset, prototypes, MMD-critic)
- Implement local post-hoc explanations:
- Implement Anchors
- Implement Foil Trees + ability to turn any output into a binary classification problem (fact-foil encodings)
- Implement global post-hoc explanations
- Add support for regression models
- More complex data augmentation
- Top-k replacement (e.g. according to LM / WordNet)
- Tokens to exclude from being changed
- Bag-of-words style replacements
- Add rule-based return type
- Write more tests
- Update documentation
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
text_explainability-0.2.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for text_explainability-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3bc929d4c542cdf9436e73f9e2e8452f1c01dab8a80e50cb182742a17b017d6 |
|
MD5 | 59fba8d274dbcf3f52209496cb8a213e |
|
BLAKE2b-256 | b44b07785c0cfbc12ef7f23cf405028202ad63a19082dc1b030ff3a1a100e740 |