Skip to main content

Generic explainability architecture for text models

Project description

Text Explainability

A generic explainability architecture for explaining text machine learning models.

Marcel Robeer, 2021

Installation

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

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


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.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

text_explainability-0.1-py3-none-any.whl (14.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page