Skip to main content

Learning Interpretability Tool.

Project description

Learning Interpretability Tool (LIT)

The Learning Interpretability Tool (LIT) is a visual, interactive model-understanding tool for NLP models.

LIT is built to answer questions such as:

  • What kind of examples does my model perform poorly on?
  • Why did my model make this prediction? Can this prediction be attributed to adversarial behavior, or to undesirable priors in the training set?
  • Does my model behave consistently if I change things like textual style, verb tense, or pronoun gender?

LIT supports a variety of debugging workflows through a browser-based UI. Features include:

  • Local explanations via salience maps, attention, and rich visualization of model predictions.
  • Aggregate analysis including custom metrics, slicing and binning, and visualization of embedding spaces.
  • Counterfactual generation via manual edits or generator plug-ins to dynamically create and evaluate new examples.
  • Side-by-side mode to compare two or more models, or one model on a pair of examples.
  • Highly extensible to new model types, including classification, regression, span labeling, seq2seq, and language modeling. Supports multi-head models and multiple input features out of the box.
  • Framework-agnostic and compatible with TensorFlow, PyTorch, and more.

The source code and documentation can be found at https://github.com/pair-code/lit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

lit_nlp-0.5.0-py3-none-any.whl (12.3 MB view details)

Uploaded Python 3

File details

Details for the file lit_nlp-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: lit_nlp-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for lit_nlp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a388f5b67a14c6860fedc76ed3fba3fbd261cb5d3670fae16cdae46f1865d1f2
MD5 b6020e67bc82629c8244079f66eff89c
BLAKE2b-256 e0c789779d27f009402a331994746a07d9317d5f175f11cd896a3f30400bb141

See more details on using hashes here.

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