From 7b6c1a697f9f2a945e99c11891f90664c240660f Mon Sep 17 00:00:00 2001 From: Zoey Li <31378877+alicialics@users.noreply.github.com> Date: Wed, 5 Apr 2023 06:02:50 +0000 Subject: [PATCH] Move supervise by to projection panel initialize input fix lint bookmark --- .../plugins/projector/vz_projector/data.ts | 3 + .../vz-projector-data-panel.html.ts | 35 ------ .../vz_projector/vz-projector-data-panel.ts | 91 +-------------- .../vz-projector-projections-panel.html.ts | 38 +++++++ .../vz-projector-projections-panel.ts | 104 ++++++++++++++++-- .../projector/vz_projector/vz-projector.ts | 7 -- 6 files changed, 134 insertions(+), 144 deletions(-) diff --git a/tensorboard/plugins/projector/vz_projector/data.ts b/tensorboard/plugins/projector/vz_projector/data.ts index 2cbca27d7a..f8d6a00a6d 100644 --- a/tensorboard/plugins/projector/vz_projector/data.ts +++ b/tensorboard/plugins/projector/vz_projector/data.ts @@ -668,6 +668,9 @@ export class State { tSNEIteration: number = 0; tSNEPerplexity: number = 0; tSNELearningRate: number = 0; + tSNESuperviseFactor: number = 0; + tSNESuperviseInput: string; + tSNESuperviseColumn: string; tSNEis3d: boolean = true; /** UMAP parameters */ umapIs3d: boolean = true; diff --git a/tensorboard/plugins/projector/vz_projector/vz-projector-data-panel.html.ts b/tensorboard/plugins/projector/vz_projector/vz-projector-data-panel.html.ts index 49dea01990..4aaff9fcb8 100644 --- a/tensorboard/plugins/projector/vz_projector/vz-projector-data-panel.html.ts +++ b/tensorboard/plugins/projector/vz_projector/vz-projector-data-panel.html.ts @@ -122,7 +122,6 @@ export const template = html` } .metadata-editor, - .supervise-settings, .colorlabel-container { display: flex; } @@ -140,15 +139,6 @@ export const template = html` display: none; } - .supervise-settings paper-dropdown-menu { - width: 100px; - margin-right: 10px; - } - - .supervise-settings paper-input { - width: calc(100% - 110px); - } - .metadata-editor paper-dropdown-menu { width: 100px; margin-right: 10px; @@ -354,31 +344,6 @@ export const template = html`