Skip to content

Embedding Projector: UMAP and TSNE projections broken for embeddings that are not normalized #6271

@alicialics

Description

@alicialics

Chrome 111.0.5563.64

Issue description

When using embeddings that are not normalized and sphereized, the UMAP and T-SNE are incorrect or not simply loading.
See #5547 for a previous bug report.

the reason is that knn expects normalized vectors for cosine distance (cosDistNorm) rather than arbitrary vectors.

Alternative repo:

  • Build and launch projector (must be from master, not https://projector.tensorflow.org)
  • Uncheck "Sphereize data" on the default Word2Vec 10k dataset
  • Switch projection from "PCA" to either t-SNE or UMAP
  • See the UI breaks with "Initializing t-SNE..."/"Initialize UMAP..." modal loading forever

related to: #2421

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions