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

Uploaded Source

Built Distributions

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

text_sensitivity-0.1.7-py3.9.egg (1.1 MB view details)

Uploaded Egg

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: text_sensitivity-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 6f4464df3cf5615bd95375257a746b9b40d6decbacba2bf486f93eb59d893711
MD5 073b942befe32ac12366a50be24db58c
BLAKE2b-256 db33362d007dfa35f037a84ca431e2b940be3e65d73ce25959e81533f7222c80

See more details on using hashes here.

File details

Details for the file text_sensitivity-0.1.7-py3.9.egg.

File metadata

  • Download URL: text_sensitivity-0.1.7-py3.9.egg
  • Upload date:
  • Size: 1.1 MB
  • Tags: Egg
  • 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.7-py3.9.egg
Algorithm Hash digest
SHA256 d27aeb717d398d2a61470436363314c509a4525f07b482ca4ce6ef9f5d31c33a
MD5 b66da7bb5bd637da72e3f13b345bd423
BLAKE2b-256 fc18dd5446ba5600daa659bc0155cecbca4e2c8cf10331533f41fb9548a4870f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: text_sensitivity-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4c36dbcd44f55e3587cc5483997a0bd48dd436ab0d1d1ad6cedf645b879e19d6
MD5 53a65d40cc39df343f5b8afa8eb5ab72
BLAKE2b-256 ba15334ff784839549b8409814135562513ef527e2519d61b01a870909922bcd

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