Skip to main content

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 (@m.j.robeer)
  • Michiel Bron (@mpbron-phd)

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

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.3.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

text_explainability-0.3.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file text_explainability-0.3.0.tar.gz.

File metadata

  • Download URL: text_explainability-0.3.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for text_explainability-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6861c142e5f29754507e04138b543d2ebdf7ac1f6ca9026313c069c8deeccb6e
MD5 901efd44e8b7fde3849a7018a8a19ada
BLAKE2b-256 6908f6ddfab99fa8d03f8fcb340094767a33971d3947796e49098bd5c3eb020b

See more details on using hashes here.

File details

Details for the file text_explainability-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: text_explainability-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for text_explainability-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 812e09d98011d7d0f5f44bfcb412cb90178b6ad6d953a2118237aff66ac2d463
MD5 18a24d611f00d693bc78ae824f9e744f
BLAKE2b-256 b2648ffd0ccf4a9a542de4842cd50916f567a270b45915f969b53f96d8f78887

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