Commit a1a3b14
authored
Embedding Projector: fix bookmark projection state (#6328)
## 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 considered1 parent 0a8eb15 commit a1a3b14
File tree
3 files changed
+8
-1
lines changed- tensorboard/plugins/projector/vz_projector
3 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| 683 | + | |
| 684 | + | |
683 | 685 | | |
684 | 686 | | |
685 | 687 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| 653 | + | |
653 | 654 | | |
654 | 655 | | |
655 | 656 | | |
| |||
674 | 675 | | |
675 | 676 | | |
676 | 677 | | |
| 678 | + | |
677 | 679 | | |
678 | 680 | | |
679 | 681 | | |
680 | 682 | | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
681 | 686 | | |
682 | 687 | | |
683 | 688 | | |
| |||
0 commit comments