+
Skip to content

Merge dev to main for v0.4 #549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 216 commits into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
51985dc
Adding Stanza wrapper and demo
noahcb Apr 2, 2021
106b30d
Truncates the menu item text if longer than 25 characters.
ellenjiang7 Apr 5, 2021
9a0f677
Changes the table filtering to use regex search.
ellenjiang7 Apr 8, 2021
b1060e8
Minor updates to comments/docstrings. Handle multiple sentences.
noahcb Apr 9, 2021
9978971
Fix scalars xaxis when all values are identical
jameswex Apr 9, 2021
3575f2b
Update hotflip algorithm to only report minimal hotflips
ankurtaly Apr 9, 2021
be3eeaf
Remove a print statement
noahcb Apr 12, 2021
dd7c224
Allow specifying tokens to not flip in hotflip generator.
jameswex Apr 12, 2021
621eaae
Silence type errors generated by new pytype features.
rchen152 Apr 13, 2021
03b272d
Make Integrated Gradients options configurable in the UI.
jameswex Apr 13, 2021
096ff98
More documentation and a TODO for the UD dataset
noahcb Apr 13, 2021
1253494
Allow sharing multiple examples from URL when launching LIT.
tolga-b Apr 14, 2021
e7fed06
Hotflip: Sort tokens by gradient before generating subsets
ankurtaly Apr 15, 2021
6dfb8c0
Rewrite of widget group layout/width logic.
jameswex Apr 16, 2021
489330f
Add plots for scalar input features.
jameswex Apr 16, 2021
926c761
Move table controls to data table module, since these were quite spec…
iftenney Apr 16, 2021
1e72260
Changes LIT TCAV's t-test to check against the scores of a random sam…
ellenjiang7 Apr 19, 2021
2913710
Fix typo and add demo instructions
noahcb Apr 20, 2021
a6b57f6
Formatting update
noahcb Apr 20, 2021
dbeaa5e
Another format update
noahcb Apr 20, 2021
8be2eaa
Merge pull request #295 from noahcb:dev
a-googler Apr 20, 2021
35fa4dd
Fixes a precision error by switching testing utils helper to use nump…
ellenjiang7 Apr 21, 2021
75fec95
Escape key to exit fullscreen windows.
iftenney Apr 21, 2021
9fd08fd
Internal change.
iftenney Apr 21, 2021
27c7f59
Hotflip: Option to drop tokens instead of flipping
ankurtaly Apr 21, 2021
ae5411f
Make table handle fields with missing data more gracefully.
tolga-b Apr 23, 2021
7b98da1
Improvements to model and dataset selection in main toolbar.
iftenney Apr 29, 2021
a61d38c
Pin header and main-area heights in the widget, so we don't get extra…
iftenney Apr 29, 2021
1b1d8ab
Fix rendering of false-y values that are not 'undefined'
iftenney Apr 29, 2021
b5118be
Data table set to "only show selected" by default, for more informati…
iftenney Apr 29, 2021
9fbeb00
Fix ts compiler options to match between builds.
jameswex Apr 30, 2021
4853339
Allow multiple types to match in FieldMatcher type
jameswex Apr 30, 2021
519d919
Add support for multilabel model returns, including a model results m…
jameswex Apr 30, 2021
15b339f
Support pretokenized input for GLUE models, using batch_encode_pretok…
iftenney Apr 30, 2021
bdcfc2f
De-dupe _from_pretrained() helper function.
iftenney Apr 30, 2021
68ee05f
Add unit tests for hotflip
jameswex Apr 30, 2021
47a8ee2
Add hotflip generator to default generators list.
jameswex May 3, 2021
d5f4f0e
Hotflip: Refactor code to improve readability
ankurtaly May 4, 2021
219808a
Clean up generator module to use data-table.
jameswex May 6, 2021
2804c05
Create lit_model for TFX models
a-googler May 7, 2021
8f87f9c
Split out matrix visualization from the confusion matrix module.
jameswex May 7, 2021
aff19ba
Lit forward-compat: Replace `x instanceof TemplateResult` with `isTem…
a-googler May 7, 2021
68708df
Adds nearest neighbors functionality:
ellenjiang7 May 10, 2021
d94a928
Hotflip: Add support for regression models
ankurtaly May 11, 2021
2a39d94
Style confusion matrix.
jameswex May 11, 2021
88c50f0
Fix broken hotflip unit test.
jameswex May 12, 2021
f071b4e
Extend TFXModel to serialize TF examples and pass them as inputs to t…
a-googler May 13, 2021
4ca89d7
Fix maximization overlays.
jameswex May 18, 2021
44a0d5e
Hotflip: Enable "drop tokens" when gradients and embeddings are not a…
ankurtaly May 18, 2021
a72fc47
Allow for multiple confusion matrices in the module.
jameswex May 21, 2021
a15bc06
Adds a toxicity demo, with Hugginface model fine-tuned on the TFDS Ji…
ellenjiang7 May 24, 2021
2510286
UI Improvements
jameswex May 26, 2021
b933f65
Add missing typing.Optional type annotations to function parameters.
rchen152 May 27, 2021
27f16a2
Add type for pixel-wise gradients for image models.
jameswex Jun 2, 2021
4851255
Add saliency map display for image data.
jameswex Jun 2, 2021
1876a6c
AblationFlip: New Counterfactual generator for LIT
ankurtaly Jun 3, 2021
42232cb
Move table element to use paginated tables to avoid rendering issues.
jameswex Jun 7, 2021
4586960
Create interpreter for generating partial dependence plots
jameswex Jun 7, 2021
db2008f
AblationFlip: Allow empty string in non-required text fields
ankurtaly Jun 8, 2021
60567ca
AblationFlip, Hotflip: Report prediction in generated counterfactuals
ankurtaly Jun 10, 2021
19774b8
Show scores (if available) for generated text candidates
iftenney Jun 10, 2021
82a67bb
Add button in data table to reset to first page.
jameswex Jun 10, 2021
e8c4336
Internal change.
iftenney Jun 10, 2021
d98b369
More consistent sizing of toolbars and headers.
iftenney Jun 11, 2021
13f97f2
Add initial partial dependence plot module.
jameswex Jun 11, 2021
8074dba
Fix OSS build break
jameswex Jun 11, 2021
47f74d9
LIT TCAV UI Updates:
ellenjiang7 Jun 14, 2021
de77923
Toggle to switch between highlighting diffs and matches in generated …
iftenney Jun 15, 2021
fd00573
Add partial dependence plot visuals.
jameswex Jun 15, 2021
8938d8e
Allow full size display of images in datapoint editor.
jameswex Jun 16, 2021
21f0cbb
AblationFlip: Support ablations over SparseMultilabel fields
ankurtaly Jun 17, 2021
8f879f3
AblationFlip: Prune space of ablatable tokens based on leave-one-out …
ankurtaly Jun 21, 2021
d54b4ec
Datapoint editor: densifying table and using checkboxes for boolean v…
a-googler Jun 23, 2021
4c120b5
Add MultiFieldMatcher type that allows users to populate generator/in…
tolga-b Jun 24, 2021
42312cb
Preserve whitespace in data table cells, with wrapping.
a-googler Jun 25, 2021
5cf399a
Add support for multiple references in the generated text module. Beh…
Jun 25, 2021
fa2ada3
AblationFlip: Enable URL tokenization
ankurtaly Jun 28, 2021
73f0a11
Standardizes interface for tfx model.
a-googler Jun 29, 2021
e6c166c
Internal change.
iftenney Jul 1, 2021
8ef4877
Add binary classifier threshold finder interpreter.
jameswex Jul 9, 2021
516b274
AblationFlip: Enable ablations across multiple fields
ankurtaly Jul 12, 2021
c84b430
Add thresholder module to control binary classifier thresholds.
jameswex Jul 14, 2021
820f71c
Docs on usage conventions for type system.
iftenney Jul 14, 2021
e804aa5
Docs: move PR note to README.md
iftenney Jul 14, 2021
32cc82c
For backtranslation generator module, allow user to select fields to
a-googler Jul 22, 2021
ffeab8f
chore: update mwc-switch to temporarily deprecated version
a-googler Jul 23, 2021
7ed275d
Internal change.
iftenney Jul 26, 2021
6c58a82
Internal change.
iftenney Jul 26, 2021
3ca7d09
Internal change.
iftenney Jul 26, 2021
325a5a4
Internal change.
iftenney Jul 26, 2021
b05c435
Bug fix in URL ablation logic
ankurtaly Jul 29, 2021
da3773d
Internal change.
iftenney Jul 30, 2021
48b9a89
Adds relative TCAV functionality (support for running TCAV with a con…
ellenjiang7 Aug 3, 2021
c3d3319
Add ability to set binary classifier thresholds by facets, not just e…
jameswex Aug 4, 2021
eb0498b
SimpleMetrics API: add missing run() impl and handling for missing mo…
iftenney Aug 5, 2021
88a294f
Internal change.
iftenney Aug 5, 2021
980eff3
Internal change.
iftenney Aug 5, 2021
ffe8e7b
Internal change.
iftenney Aug 5, 2021
58983e8
Notebook mode and error status improvements.
jameswex Aug 6, 2021
7cc444a
Add missing run() impl to ClassificationMetricsWrapper
iftenney Aug 9, 2021
47d09ae
In settings menu, add "Features" for datasets and "Output Fields" for
iftenney Aug 9, 2021
9ddf6ef
Update binary threshold module.
jameswex Aug 9, 2021
2556c73
Fix broken OSS build
jameswex Aug 10, 2021
3f698d6
Clean up T5 and remote-model APIs.
iftenney Aug 10, 2021
1452fc8
Minor CSS fixes
iftenney Aug 10, 2021
d104d76
Minor CSS changes.
iftenney Aug 11, 2021
c6b6ad2
Update generator module UI.
iftenney Aug 12, 2021
d81cb22
Fix fullscreen sizing issue with wide modules.
iftenney Aug 17, 2021
06e31b0
Updates to generator module UI.
iftenney Aug 17, 2021
708bc42
Option to append selection to an existing slice, via slice editor.
iftenney Aug 17, 2021
85a79c0
Fix centering for 'simple' layout.
iftenney Aug 17, 2021
f83c735
Use proper sticky headers and footers in table.ts
iftenney Aug 17, 2021
7bba994
Move shared_styles.css to lib/
iftenney Aug 17, 2021
176465f
Move toolbars and settings panels to core/
iftenney Aug 17, 2021
86805cd
Move app/ into core/
iftenney Aug 17, 2021
5fd81d6
Switch app.ts and lit_app.ts to be more consistent.
iftenney Aug 17, 2021
d44e983
Option to write intermediate checkpoints from GLUE trainer.
iftenney Aug 18, 2021
c5289c0
Add binary classification threshold calculations for fairness constra…
jameswex Aug 19, 2021
7f51975
Add the override keyword to class members in TypeScript files
a-googler Aug 19, 2021
b665607
Add the override keyword to class members in TypeScript files
a-googler Aug 19, 2021
f50ae85
Module to display generated images.
iftenney Aug 20, 2021
e420c75
Simplified version of datapoint editor for simple demo use.
iftenney Aug 20, 2021
a2c7de1
Add the override keyword to class members in TypeScript files
a-googler Aug 24, 2021
ac4d935
Disable dropdown in generator controls if only one option is present.
tolga-b Aug 25, 2021
011160e
Internal change.
tolga-b Aug 26, 2021
2cce13e
Rewrite multilabel results module to be a single table for all results.
jameswex Aug 31, 2021
b5927e4
Integration of gradient based explainability methods with LIT.
a-googler Aug 31, 2021
2402d6e
Improved formatting for error message modal; fixes some scrolling iss…
iftenney Aug 31, 2021
77b64b2
Set cursor focus to table search box when opened.
iftenney Aug 31, 2021
fa85ef0
Improved text box sizing in datapoint editor.
iftenney Aug 31, 2021
e468843
Option to select target field for LIME from UI.
iftenney Sep 3, 2021
59243f8
Show reference scores for seq2seq models.
iftenney Sep 3, 2021
7d4a8ab
Initial version of seq2seq salience viz.
iftenney Sep 3, 2021
b9fc2cd
Use GitHub Actions for CI tests.
jameswex Sep 7, 2021
218c50a
Fixed the saliency lib import.
a-googler Sep 7, 2021
46a57b2
Use relative path in queryServer to be able to handle proxy URLs in n…
jameswex Sep 8, 2021
2c6f36c
Remove extra widget padding, and associated CSS fixes.
iftenney Sep 9, 2021
d870ee9
Internal change
jameswex Sep 9, 2021
729c878
Fixes to no longer freeze when dealing with mutliclass models with a …
jameswex Sep 10, 2021
b8236f6
Internal change.
iftenney Sep 22, 2021
92892c1
Add model-provided salience.
jameswex Sep 22, 2021
32439b3
Import 'lit' from Lit 2
a-googler Sep 23, 2021
9d87a13
Import 'lit' from Lit 2
a-googler Sep 23, 2021
ee6f4be
Import 'lit' from Lit 2.0
a-googler Sep 24, 2021
4c1d624
Add the override keyword to class members in TypeScript files
a-googler Sep 28, 2021
243f250
Fix display issue for seq2seq preds when model does not score referen…
iftenney Sep 29, 2021
1584cb4
Add missing static properties to LitModule base class
iftenney Oct 6, 2021
6d0da92
Fix table header alignment and tidy up CSS.
iftenney Oct 6, 2021
f3353ba
Simplified behavior for "Only show selected" in data table
iftenney Oct 11, 2021
026b673
Update center toolbar styling
iftenney Oct 11, 2021
d5c9e95
Remove 'blackbox' layout
iftenney Oct 11, 2021
3a605da
Add per-layer average embeddings to GLUE demos.
iftenney Oct 12, 2021
9072bb1
Allow dynamic loading of models through LIT UI.
jameswex Oct 12, 2021
7d0a6cf
Fix dependency loop in table.ts header info
iftenney Oct 12, 2021
1125064
Remove default_no_projector layout
iftenney Oct 13, 2021
2e89061
Fast layout switching via the main toolbar, similar to models and dat…
iftenney Oct 13, 2021
68bdfa2
Giving the range defined in `ScalarModule.getXScale()` some air to br…
a-googler Oct 15, 2021
8678254
Create OSS image demo with mobilenet and open-images.
jameswex Oct 18, 2021
91aa9b3
Update markdown documentation
jameswex Oct 18, 2021
40df6c1
Clean up unused service APIs and extra indirection.
iftenney Oct 19, 2021
6cf846f
CAV score to fixed width of 3 digits
RyanMullins Oct 19, 2021
72da669
Hide empty toolbar in generated text module.
iftenney Oct 20, 2021
07deb06
Add Annotator API to LIT.
jameswex Oct 20, 2021
f866e9f
Create tabular demo using penguin classification.
jameswex Oct 20, 2021
e0aa458
Add app argument to track development demos.
jameswex Oct 21, 2021
02885d5
Fix OSS docs
jameswex Oct 21, 2021
08e445e
TCAV documentation change
ellenjiang7 Oct 22, 2021
41ee943
Allow creation of empty datasets.
a-googler Oct 26, 2021
8a40d5b
Use Imagenette TFDS dataset in image demo for much faster start-up time.
jameswex Oct 26, 2021
8601e09
Update penguin demo
jameswex Oct 26, 2021
14f533f
Add the override keyword to class members in TypeScript files
a-googler Oct 27, 2021
fea412f
Get image and penguin demos working in Cloud
jameswex Oct 27, 2021
4b75a74
Minor fixes.
iftenney Oct 27, 2021
413ff49
ModelWrapper class to implement pass-through functionality.
iftenney Oct 28, 2021
7b78cdc
Display fixes for `lit-data-table` and `classification-module`
RyanMullins Oct 31, 2021
565e053
Removes null from ServiceUser type alias, which was causing small a l…
RyanMullins Nov 1, 2021
db70a29
Hide modules when no valid interpreters are loaded for them.
jameswex Nov 1, 2021
3b39b9f
Adds the ability to define/enable default sort characteristics, which…
RyanMullins Nov 1, 2021
a8d5db4
Code and documentation clean-up
jameswex Nov 1, 2021
d73ebad
Support tabs in main (upper) layout area.
iftenney Nov 2, 2021
012b741
Clean up documentation
jameswex Nov 2, 2021
ceff726
Include sequence salience module in layouts.
iftenney Nov 2, 2021
c43a8f2
Improvements for sequence salience.
iftenney Nov 2, 2021
0cf01c6
More consistent sizes for module toolbars and footers.
iftenney Nov 2, 2021
53e168d
Hide widget subtitle if modules are not replicated.
iftenney Nov 2, 2021
40111e5
SimpleDataTableModule option for simplified layout. Hides selection a…
iftenney Nov 2, 2021
e5a5e00
Add last-page and random-page buttons to table footer
iftenney Nov 2, 2021
acbd0a9
Fix fonts in datapoint editor and generated text vis.
iftenney Nov 2, 2021
036acbd
Temporary fix to get things working again after update to Lit library
iftenney Nov 3, 2021
7cea4da
Disable horizontal scrolling in lit-modules groups (tabs).
jameswex Nov 3, 2021
19f8bbc
Clean up fonts, colors, and some assorted styling issues.
iftenney Nov 3, 2021
13c6824
Choose target text for sequence salience.
iftenney Nov 3, 2021
10a4623
Protect against invalid array access in observables.
jameswex Nov 3, 2021
f967f4f
Fix issue where scalars module would intercept mouse events even when…
iftenney Nov 4, 2021
5ac9946
website updates
jameswex Nov 4, 2021
989d65c
Internal change
iftenney Nov 4, 2021
40ad6ea
Adds LIT Brand and VizColor palettes as custom properties in shared s…
RyanMullins Nov 4, 2021
4519a95
Adds LIT's Brand, Tonal, and Error colors to colors.ts
RyanMullins Nov 5, 2021
3b6afc8
Updates for new release.
jameswex Nov 5, 2021
3ce9446
Fix bad resizing of expanding datapoint editor text fields.
jameswex Nov 5, 2021
2bcc4ca
update
jameswex Nov 5, 2021
30bb064
Minimal Targeted Counterfactual generator with minimal set guarantee
a-googler Nov 5, 2021
a0e3d7d
Make renderLayout observable so module layout refreshes on changes.
jameswex Nov 5, 2021
6455d77
Changing attention lines to use cyea colors
RyanMullins Nov 5, 2021
441fe8a
Internal change.
iftenney Nov 5, 2021
bd07144
Pin package versions and fix GPT-2 in LM demo
iftenney Nov 7, 2021
443a1dd
Aligning AttentionModule head button colors with line colors
RyanMullins Nov 8, 2021
8e91fab
For our demos, pin tensorflow-estimator to 2.6.0 with rest of TF libr…
jameswex Nov 8, 2021
50ab8ae
website update
jameswex Nov 8, 2021
29e9b9b
review updates
jameswex Nov 8, 2021
f03acd8
review comments
jameswex Nov 9, 2021
7a89359
Merge branch 'dev' into website_0.4
jameswex Nov 9, 2021
e1fe097
change
jameswex Nov 9, 2021
74f5373
Merge pull request #547 from PAIR-code:website_0.4
a-googler Nov 9, 2021
214f026
Fix OOV padding issue in GPT-2 model wrapper.
iftenney Nov 9, 2021
b254192
Pin numba and umap versions.
iftenney Nov 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================

# Config file for GitHub Actions for CI.

name: CI

# Run on pushes and pull requests on main and dev branches.
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build-and-test:
name: Build and test (${{ matrix.python-version }})
strategy:
matrix:
python-version: ["3.7"]
defaults:
run:
shell: bash -l {0}
runs-on: ubuntu-latest

steps:
# Checkout the code for this CI operation.
- uses: actions/checkout@v2

# Setup environment for LIT and test python.
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
- run: |
conda env create -f environment.yml
conda activate lit-nlp
pip install pytest lime
pytest -v

# Build front-end.
- uses: actions/setup-node@v2
- run: pushd lit_nlp && yarn && yarn build && popd

# TODO(jwexler): Test front-end
56 changes: 0 additions & 56 deletions .travis.yml

This file was deleted.

39 changes: 22 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# 🔥 Language Interpretability Tool (LIT)

<!--* freshness: { owner: 'lit-dev' reviewed: '2020-08-04' } *-->
<!--* freshness: { owner: 'lit-dev' reviewed: '2021-07-13' } *-->

The Language Interpretability Tool (LIT) is a visual, interactive
model-understanding tool for NLP models. It can be run as a standalone server,
or inside of notebook environments such as Colab and Jupyter.
model-understanding tool for ML models, focusing on NLP use-cases. It can be run
as a standalone server, or inside of notebook environments such as Colab,
Jupyter, and Google Cloud Vertex AI notebooks.

LIT is built to answer questions such as:

Expand Down Expand Up @@ -39,13 +40,12 @@ Stay up to date on LIT by joining the
[lit-announcements mailing list](https://groups.google.com/g/lit-annoucements).

For a broader overview, check out [our paper](https://arxiv.org/abs/2008.05122) and the
[user guide](documentation/user_guide.md).
[user guide](https://github.com/PAIR-code/lit/wiki/ui_guide.md).

## Documentation

* [User Guide](documentation/user_guide.md)
* [Developer Guide](documentation/development.md)
* [FAQ](documentation/faq.md)
* [Documentation index](https://github.com/PAIR-code/lit/wiki/)
* [FAQ](https://github.com/PAIR-code/lit/wiki/faq.md)
* [Release notes](./RELEASE.md)

## Download and Installation
Expand Down Expand Up @@ -94,8 +94,8 @@ Explore a collection of hosted demos on the
[LIT website demos page](https://pair-code.github.io/lit/demos).

Colab notebooks showing the use of LIT inside of notebooks can be found at
google3/third_party/py/lit_nlp/example/notebooks. A simple example can be viewed
[here](https://colab.research.google.com/github/pair-code/lit/blob/main/examples/notebooks/LIT_sentiment_classifier.ipynb).
google3/third_party/py/lit_nlp/examples/notebooks. A simple example can be viewed
[here](https://colab.research.google.com/github/pair-code/lit/blob/main/lit_nlp/examples/notebooks/LIT_sentiment_classifier.ipynb).

### Quick-start: classification and regression

Expand Down Expand Up @@ -134,7 +134,7 @@ the notebook.

### Run LIT in a Docker container

See [docker.md](documentation/docker.md) for instructions on running LIT as
See [docker.md](https://github.com/PAIR-code/lit/wiki/docker.md) for instructions on running LIT as
a containerized web app. This is the approach we take for our
[website demos](https://pair-code.github.io/lit/demos/).

Expand All @@ -148,7 +148,7 @@ python -m lit_nlp.examples.<example_name> --port=5432 [optional --args]

## User Guide

To learn about LIT's features, check out the [user guide](documentation/user_guide.md), or
To learn about LIT's features, check out the [user guide](https://github.com/PAIR-code/lit/wiki/ui_guide.md), or
watch this [video](https://www.youtube.com/watch?v=CuRI_VK83dU).

## Adding your own models or data
Expand All @@ -158,20 +158,25 @@ launcher, similar to those in [lit_nlp/examples](./lit_nlp/examples). The basic
steps are:

* Write a data loader which follows the
[`Dataset` API](documentation/python_api.md#datasets)
* Write a model wrapper which follows the [`Model` API](documentation/python_api.md#models)
[`Dataset` API](https://github.com/PAIR-code/lit/wiki/api.md#datasets)
* Write a model wrapper which follows the [`Model` API](https://github.com/PAIR-code/lit/wiki/api.md#models)
* Pass models, datasets, and any additional
[components](documentation/python_api.md#interpretation-components) to the LIT server
[components](https://github.com/PAIR-code/lit/wiki/api.md#interpretation-components) to the LIT server
class

For a full walkthrough, see
[adding models and data](documentation/python_api.md#adding-models-and-data).
[adding models and data](https://github.com/PAIR-code/lit/wiki/api.md#adding-models-and-data).

## Extending LIT with new components

LIT is easy to extend with new interpretability components, generators, and
more, both on the frontend or the backend. See the
[developer guide](documentation/development.md) to get started.
more, both on the frontend or the backend. See our
[documentation](https://github.com/PAIR-code/lit/wiki/index.md) to get started.

## Pull Request Process

To make code changes to LIT, please work off of the `dev` branch and create
pull requests against that branch. The `main` branch is for stable releases, and it is expected that the `dev` branch will always be ahead of `main` in terms of commits.

## Citing LIT

Expand Down
20 changes: 20 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Language Interpretability Tool releases

## Release 0.4

This release adds a lot of new features. The website and documentation have
been updated accordingly.

The UI has been slightly revamped, bugs have been fixed, and new capabilities
have been added. Noteable changes include:
- Support for Google Cloud Vertex AI notebooks.
- Preliminary support for tabular and image data, in addition to NLP models.
- Addition of TCAV global interpretability method.
- New counterfactual generators for ablating or flipping text tokens for
minimal changes to flip predictions.
- New counterfactual generator for tabular data for minimal changes to flip
predictions.
- Partial depdence plots for tabular input features.
- Ability to set binary classification thresholds separately for different
facets of the dataset
- Controls to find optimal thresholds across facets given different fairness
constraints, such as demographic parity or equal opportunity.

## Release 0.3

This release adds the ability to use LIT directly in colab and jupyter
Expand Down
4 changes: 4 additions & 0 deletions docs/assets/css/new.css
Original file line number Diff line number Diff line change
Expand Up @@ -639,3 +639,7 @@ img.status-emoji {
height: 24px;
padding-right: 4px;
}

.tutorial-caption {
padding-bottom: 16px;
}
Binary file added docs/assets/images/actor_to_actress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/actress_relative_cav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/lit_data_table_annotated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/lit_tcav_screen_annotated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/tcav_result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/tcav_results_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/demos/images.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<script>
window.location.replace("http://104.155.142.190/");
</script>
</html>
28 changes: 25 additions & 3 deletions docs/demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@
<div class="demo-card-cta-button"><a href="/lit/demos/glue.html"></a></div>
</div>
<div class="demo-card mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone">
<div class="demo-card-title"><a href="https://colab.research.google.com/github/PAIR-code/lit/blob/main/lit_nlp/examples/notebooks/LIT_sentiment_classifier.ipynb" target="_blank">Notebook usage</a></div>
<div class="demo-card-tags"> <span class="demo-tag"> BERT </span> <span class="demo-tag"> binary classification </span> <span class="demo-tag"> notebooks </span>
<div class="demo-card-title"><a href="/lithttps://colab.research.google.com/github/PAIR-code/lit/blob/main/lit_nlp/examples/notebooks/LIT_sentiment_classifier.ipynb" target="_blank">Notebook usage</a></div>
<div class="demo-card-tags"> <span class="demo-tag"> BERT </span> <span class="demo-tag"> binary classification </span> <span class="demo-tag"> notebooks </span>
</div>
<div class="demo-card-data-source-title">DATA SOURCES</div>
<div class="demo-card-data-source">
Stanford Sentiment Treebank
</div>
<div class="demo-card-copy">Use LIT directly inside a Colab notebook. Explore binary classification for sentiment analysis using SST2 from the General Language Understanding Evaluation (GLUE) benchmark suite.</div>
<div class="demo-card-cta-button"><a href="https://colab.research.google.com/github/PAIR-code/lit/blob/main/lit_nlp/examples/notebooks/LIT_sentiment_classifier.ipynb"></a></div>
<div class="demo-card-cta-button"><a href="/lithttps://colab.research.google.com/github/PAIR-code/lit/blob/main/lit_nlp/examples/notebooks/LIT_sentiment_classifier.ipynb"></a></div>
</div>
<div class="demo-card mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone">
<div class="demo-card-title"><a href="/lit/demos/coref.html" target="_blank">Gender bias in coreference systems</a></div>
Expand Down Expand Up @@ -139,6 +139,28 @@
</div>
<div class="demo-card-copy">Use a T5 model to summarize text. For any example of interest, quickly find similar examples from the training set, using an approximate nearest-neighbors index.</div>
<div class="demo-card-cta-button"><a href="/lit/demos/t5.html"></a></div>
</div>
<div class="demo-card mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone">
<div class="demo-card-title"><a href="/lit/demos/penguins.html" target="_blank">Tabular data</a></div>
<div class="demo-card-tags"> <span class="demo-tag"> tabular </span> <span class="demo-tag"> binary classification </span>
</div>
<div class="demo-card-data-source-title">DATA SOURCES</div>
<div class="demo-card-data-source">
Palmer Penguins
</div>
<div class="demo-card-copy">Analyze a tabular data model with LIT, including exploring partial dependence plots and automatically finding counterfactuals.</div>
<div class="demo-card-cta-button"><a href="/lit/demos/penguins.html"></a></div>
</div>
<div class="demo-card mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone">
<div class="demo-card-title"><a href="/lit/demos/images.html" target="_blank">Image classification</a></div>
<div class="demo-card-tags"> <span class="demo-tag"> images </span> <span class="demo-tag"> mutli-class classification </span>
</div>
<div class="demo-card-data-source-title">DATA SOURCES</div>
<div class="demo-card-data-source">
Imagenette
</div>
<div class="demo-card-copy">Analyze an image classification model with LIT, including muliple image salience techniques.</div>
<div class="demo-card-cta-button"><a href="/lit/demos/images.html"></a></div>
</div>
</div>

Expand Down
5 changes: 5 additions & 0 deletions docs/demos/penguins.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<script>
window.location.replace("http://35.222.78.90/");
</script>
</html>
2 changes: 1 addition & 1 deletion docs/faqs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h3 class="faq-title">How many datapoints can LIT handle?</h3>
<h3 class="faq-title">What kinds of models can LIT handle?</h3>
<div class="faq-copy">
<p>LIT can handle a variety of models, regardless of ML framework used, or output modality of the model.
It is not limited to a strict set of model types. For more information, see the <a href="https://github.com/PAIR-code/lit/blob/main/documentation/development.md">developers guide</a>.</div></p>
It is not limited to a strict set of model types. For more information, see the <a href="https://github.com/PAIR-code/lit/wiki/">documentation</a>.</div></p>
</div>
<div class="faq-element">
<h3 class="faq-title">I have proprietary data. Is LIT secure for my team to use?</h3>
Expand Down
22 changes: 12 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
<li>Does my model behave consistently if I change things like textual style, verb tense, or pronoun gender?</li>
</ul>
<p>LIT contains many built-in capabilities but is also customizable, with the ability to add custom interpretability techniques, metrics calculations, counterfactual generators, visualizations, and more.</p>
<p>For a similar tool to explore general-purpose machine learning models, check out the <a href="https://whatif-tool.dev">What-If Tool</a>.</p>
<p>LIT can be run as a standalone server, or inside of python notebook environments such as Colab and Jupyter.</p>
<p>LIT also contains preliminary support for non-language models, working with tabular and image data. For a similar tool built to explore general-purpose machine learning models, check out the <a href="https://whatif-tool.dev">What-If Tool</a>.</p>
<p>LIT can be run as a standalone server, or inside of python notebook environments such as Colab, Jupyter, and Google Cloud Vertex AI Notebooks.</p>
</div>
<div class="spacer" style="height:50px;"></div>
<div class="display2">Flexible and powerful model probing</div>
Expand All @@ -113,6 +113,7 @@ <h3>Built-in capabilities</h3>
<p>Counterfactual generation</p>
<p>Model and datapoint comparison</p>
<p>Embedding visualization</p>
<p>Testing with Concept Activation Vectors</p>
<p>And more...</p>
</div>
</div>
Expand All @@ -125,6 +126,7 @@ <h3>Supported task types</h3>
<p>Masked language models</p>
<p>Span labeling</p>
<p>Multi-headed models</p>
<p>Image and tabular data support</p>
<p>And more...</p>
</div>
</div>
Expand All @@ -144,20 +146,20 @@ <h3>Framework agnostic</h3>
<div class="spacer" style="height:50px;"></div>
<h2>What’s the latest</h2>
<div class="mdl-grid no-padding">
<div class="mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--8-col-phone">
<img class="home-card-image" src="/lit/assets/images/LIT_Contribute.png"/>
<div class="home-card-action">CODE</div>
<h3 class="home-card-title">Contribute to LIT</h3>
<div class="home-card-desc">LIT is open to anyone who wants to help develop and improve it!</div>
<div class="home-card-cta-button"><a href="https://github.com/PAIR-code/lit/blob/main/documentation/development.md" target="_blank" >View developer guide</a><img class="external-arrow" src="/lit/assets/images/arrow-link-out.png"/></div>
</div>
<div class="mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--8-col-phone">
<img class="home-card-image" src="/lit/assets/images/LIT_Updates.png"/>
<div class="home-card-action">UPDATES</div>
<h3 class="home-card-title">Latest updates</h3>
<h3 class="home-card-title">Version 0.4</h3>
<div class="home-card-desc">New features, updates, and improvements to LIT.</div>
<div class="home-card-cta-button"><a href="https://github.com/PAIR-code/lit/blob/main/RELEASE.md" target="_blank" >See release notes</a><img class="external-arrow" src="/lit/assets/images/arrow-link-out.png"/></div>
</div>
<div class="mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--8-col-phone">
<img class="home-card-image" src="/lit/assets/images/LIT_Contribute.png"/>
<div class="home-card-action">CODE</div>
<h3 class="home-card-title">Contribute to LIT</h3>
<div class="home-card-desc">LIT is open to anyone who wants to help develop and improve it!</div>
<div class="home-card-cta-button"><a href="https://github.com/PAIR-code/lit/wiki" target="_blank" >View documentation</a><img class="external-arrow" src="/lit/assets/images/arrow-link-out.png"/></div>
</div>
<div class="mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--8-col-phone">
<img class="home-card-image" src="/lit/assets/images/LIT_Paper.png"/>
<div class="home-card-action">RESEARCH</div>
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载