Skip to content

Commit

Permalink
Adds a "static" Facets Dive-like visualization to LIT.
Browse files Browse the repository at this point in the history
This version supports:

* Grouping the dataset into cells in a matrix
* Labels at the top and on the left of the matrix columns and rows
* Graceful resize that maximizes the space allocated to the matrix while keeping all points visible
* Coloring points in the matrix based on their feature value

PiperOrigin-RevId: 488400430
  • Loading branch information
RyanMullins authored and LIT team committed Nov 14, 2022
1 parent 4159527 commit 155e0c4
Show file tree
Hide file tree
Showing 5 changed files with 578 additions and 6 deletions.
1 change: 1 addition & 0 deletions lit_nlp/api/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class LitModuleName(dtypes.EnumSerializableAsValues, enum.Enum):
SimpleDataTableModule = 'simple-data-table-module'
DatapointEditorModule = 'datapoint-editor-module'
SimpleDatapointEditorModule = 'simple-datapoint-editor-module'
DiveModule = 'dive-module'
DocumentationModule = 'documentation-module'
EmbeddingsModule = 'embeddings-module'
FeatureAttributionModule = 'feature-attribution-module'
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export interface FacetedData {
/** Name to display */
displayName?: string;
/** What values were used as filters to get this data */
facets?: FacetMap;
facets: FacetMap;
}

/**
Expand Down

0 comments on commit 155e0c4

Please sign in to comment.