Skip to main content

Extension of text_explainability for sensitivity testing (robustness, fairness)

Project description

T_xt Sensitivity logo

PyPI Python_version Build_passing License Docs_passing


Extension of text_explainability for sensitivity testing (robustness, fairness).

Marcel Robeer, 2021

Installation

Method Instructions
pip Install from PyPI via pip3 install text_sensitivity.
Local Clone this repository and install via pip3 install -e . or locally run python3 setup.py install.

Documentation

Full documentation of the latest version is provided at https://marcelrobeer.github.io/text_sensitivity/.

Example usage

See example_usage.md to see an example of how the package can be used, or run the lines in example_usage.py to do explore it interactively.

Releases

text_explainability is officially released through PyPI.

See CHANGELOG.md for a full overview of the changes for each version.

Citation

@misc{text_sensitivity,
  title = {Python package text_sensitivity},
  author = {Marcel Robeer and Elize Herrewijnen},
  howpublished = {\url{https://git.science.uu.nl/m.j.robeer/text_sensitivity}},
  year = {2021}
}

Maintenance

Contributors

Todo

Tasks yet to be done:

  • Word-level perturbations
  • Add fairness-specific metrics:
    • Subgroup fairness
    • Counterfactual fairness
  • Add expected behavior
    • Robustness: equal to prior prediction, or in some cases might expect that it deviates
    • Fairness: may deviate from original prediction
  • Tests
    • Add tests for perturbations
    • Add tests for sensitivity testing schemes
  • Add visualization ability

Credits

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_sensitivity-0.1.8.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

text_sensitivity-0.1.8-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file text_sensitivity-0.1.8.tar.gz.

File metadata

  • Download URL: text_sensitivity-0.1.8.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • 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.6

File hashes

Hashes for text_sensitivity-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e89e6cdba66a178e5c9f53d3fb7385bc678bdb61d09bd7c0e8c03dabbd853ab7
MD5 092d556281f128787bd4144a92cebd46
BLAKE2b-256 8a70b729e0351e1419c4f6041868d78cdea2acd80e36a3ad22fd0450df36fd17

See more details on using hashes here.

File details

Details for the file text_sensitivity-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: text_sensitivity-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • 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.6

File hashes

Hashes for text_sensitivity-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2e4b282dd1b146b10cfe163602c83fccc75b3741f1d35d67875c32c9f59bf238
MD5 b30ff13698f38b2522fea0cf45917631
BLAKE2b-256 b15203106eee11f073775164d85736382dea34f5d5b57878be85ea150f873c0d

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