KEMBAR78
Embedding Projector: fix bookmark projection state by alicialics · Pull Request #6328 · tensorflow/tensorboard · GitHub
Skip to content

Conversation

@alicialics
Copy link
Contributor

@alicialics alicialics commented Apr 15, 2023

Motivation for features / changes

When a bookmark state of loaded, it will contain data on a certain set of projections for some of points (B).

The app also has a different (current) state (A) in terms of which points are projected.

We should completely replace the App state (A) with the bookmark state B.

Technical description of changes

store/replace shuffledDataIndices for bookmarks
wipe out existing projections in app state

Screenshots of UI changes

N/A

Detailed steps to verify changes work correctly (as executed by you)

  1. Export a bookmark that has a UMAP state
  2. Refresh app, open UMAP panel and load in the previous state.
  3. Verify only one set of 5k points are shown (as opposed to 10k points)
  4. Refresh app, load previous UMAP state and adjust parameters to a new UMAP calc is performed
  5. Verify only one set of 5k points are shown (as opposed to 10k points)

Alternate designs / implementations considered

@alicialics alicialics force-pushed the fix_bookmark_proj branch 2 times, most recently from 7bf028f to 6436b3b Compare April 15, 2023 18:23
@rileyajones rileyajones merged commit a1a3b14 into tensorflow:master Apr 19, 2023
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
## Motivation for features / changes

When a bookmark state of loaded, it will contain data on a certain set
of projections for some of points (B).

The app also has a different (current) state (A) in terms of which
points are projected.

We should completely replace the App state (A) with the bookmark state
B.

## Technical description of changes

store/replace shuffledDataIndices for bookmarks
wipe out existing projections in app state

## Screenshots of UI changes

N/A

## Detailed steps to verify changes work correctly (as executed by you)

1. Export a bookmark that has a UMAP state
2. Refresh app, open UMAP panel and load in the previous state.
3. Verify only one set of 5k points are shown (as opposed to 10k points)
4. Refresh app, load previous UMAP state and adjust parameters to a new
UMAP calc is performed
5. Verify only one set of 5k points are shown (as opposed to 10k points)

## Alternate designs / implementations considered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants