Skip to content

Commit b46c0ca

Browse files
authored
Merge pull request #600 from PAIR-code/dev
v0.4.1 Release
2 parents b0ff829 + 9fd2da3 commit b46c0ca

File tree

204 files changed

+4611
-1098
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+4611
-1098
lines changed

Dockerfile

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,31 @@
22
# https://hub.docker.com/_/python
33
FROM python:3.7-slim
44

5-
# Default demo app command to run.
6-
ENV APP_COMMAND "lit_nlp.examples.lm_demo:get_wsgi_app()"
7-
8-
# Copy local code to the container image.
9-
ENV APP_HOME /app
10-
WORKDIR $APP_HOME
11-
COPY . ./
12-
135
# Update Ubuntu packages and install basic utils
146
RUN apt-get update
157
RUN apt-get install -y wget curl gnupg2 gcc g++
168

179
# Install yarn
1810
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
19-
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
11+
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | \
12+
tee /etc/apt/sources.list.d/yarn.list
2013
RUN apt update && apt -y install yarn
2114

2215
# Install Anaconda
2316
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
24-
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/anaconda3 \
25-
&& rm Miniconda3-latest-Linux-x86_64.sh
17+
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/anaconda3 \
18+
&& rm Miniconda3-latest-Linux-x86_64.sh
2619

2720
# Set path to conda
2821
ENV PATH /opt/anaconda3/bin:$PATH
2922

23+
# Copy local code to the container image.
24+
ENV APP_HOME /app
25+
WORKDIR $APP_HOME
26+
COPY . ./
27+
3028
# Set up conda environment with production dependencies
3129
# This step is slow as it installs many packages.
32-
COPY environment.yml .
3330
RUN conda env create -f environment.yml
3431

3532
# Workaround for 'conda activate' depending on shell features
@@ -50,5 +47,15 @@ WORKDIR lit_nlp/client
5047
RUN yarn && yarn build && rm -rf node_modules/*
5148
WORKDIR $APP_HOME
5249

50+
# Default demo app command to run.
51+
ARG DEFAULT_DEMO="glue_demo"
52+
ENV DEMO_NAME $DEFAULT_DEMO
53+
54+
ARG DEFAULT_PORT="5432"
55+
ENV DEMO_PORT $DEFAULT_PORT
56+
5357
# Run LIT server
54-
CMD exec gunicorn -c lit_nlp/examples/gunicorn_config.py $APP_COMMAND
58+
ENTRYPOINT exec gunicorn \
59+
-c lit_nlp/examples/gunicorn_config.py \
60+
--bind="0.0.0.0:$DEMO_PORT" \
61+
"lit_nlp.examples.$DEMO_NAME:get_wsgi_app()"

RELEASE.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,37 @@
11
# Language Interpretability Tool releases
22

3+
## Release 0.4.1
4+
5+
This is a bug fix release aimed at improving visual clarity and common
6+
workflows.
7+
8+
The UI has been slightly revamped, bugs have been fixed, and new capabilities
9+
have been added. Notable changes include:
10+
11+
- Adds "open in new tab" feature to LIT Notebook widget
12+
- Adds support for `SparseMultilabelPreds` to LIME
13+
- Improves color consistency across the UI
14+
- Switching NumPy instead of SciKit Learn for PCA
15+
- Ensuring all built-in demos are compatible with the Docker
16+
- Updating the Dockerfile to support run-time `DEMO_NAME` and `DEMO_PORT` args
17+
- Fixed a rendering bug in the Confusion Matrix related column and row spans
18+
when "hide empty labels" is turned on
19+
320
## Release 0.4
421

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

825
The UI has been slightly revamped, bugs have been fixed, and new capabilities
9-
have been added. Noteable changes include:
26+
have been added. Notable changes include:
1027
- Support for Google Cloud Vertex AI notebooks.
1128
- Preliminary support for tabular and image data, in addition to NLP models.
1229
- Addition of TCAV global interpretability method.
1330
- New counterfactual generators for ablating or flipping text tokens for
1431
minimal changes to flip predictions.
1532
- New counterfactual generator for tabular data for minimal changes to flip
1633
predictions.
17-
- Partial depdence plots for tabular input features.
34+
- Partial dependence plots for tabular input features.
1835
- Ability to set binary classification thresholds separately for different
1936
facets of the dataset
2037
- Controls to find optimal thresholds across facets given different fairness
@@ -26,12 +43,12 @@ This release adds the ability to use LIT directly in colab and jupyter
2643
notebooks. The website and documentation have been updated accordingly.
2744

2845
The UI has been slightly revamped, bugs have been fixed, and new capabilities
29-
have been added. Noteable changes include:
46+
have been added. Notable changes include:
3047
- Notebook mode added.
3148
- New annotated text visualization module added.
3249
- Allow saving/loading of generated datapoints, and dynamic adding of new
3350
datasets by path in the UI.
34-
- Added syncronized scrolling between duplicated modules when comparing
51+
- Added synchronized scrolling between duplicated modules when comparing
3552
datapoints or models.
3653
- Added a focus service for visually linking focus (i.e. hover) states between
3754
components.
-33.7 KB
Loading
-17.7 KB
Loading
16 KB
Loading
-201 KB
Loading
-61 KB
Loading
-576 KB
Loading
3.15 KB
Loading
-215 KB
Loading

0 commit comments

Comments
 (0)