Skip to content

Commit f7d8e64

Browse files
authored
Embedding Projector: fix UMAP sampling message (#6295)
## Motivation for features / changes unlike t-SNE sampling message, the UMAP sampling message isn't hidden properly ## Technical description of changes Show UMAP sampling message only when number of points exceeds 5000 ## Screenshots of UI changes ![image](https://user-images.githubusercontent.com/31378877/232667480-e3a253f8-186d-4d68-a7f1-f6ce622e8bb6.png) ## Detailed steps to verify changes work correctly (as executed by you) 1. Change to Iris data set 1. Navigate to UMAP 1. verify the 5000 sampling mage doesn't show ## Alternate designs / implementations considered
1 parent 742520c commit f7d8e64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tensorboard/plugins/projector/vz_projector/vz-projector-projections-panel.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ class ProjectionsPanel extends LegacyElementMixin(PolymerElement) {
367367
this.clearCentroids();
368368
(this.$$('#tsne-sampling') as HTMLElement).style.display =
369369
pointCount > TSNE_SAMPLE_SIZE ? null! : 'none';
370+
(this.$$('#umap-sampling') as HTMLElement).style.display =
371+
pointCount > UMAP_SAMPLE_SIZE ? null! : 'none';
370372
const wasSampled =
371373
dataSet == null
372374
? false

0 commit comments

Comments
 (0)