code: async function computeEmbedding(data, numPoints) {
    const embedder = tsne.tsne(data, {
      perplexity: 18,
      verbose: true,
      knnMode: 'auto',
    });
  
    // This will run the TSNE computation for 1000 steps.
    // Note that this may take a while.
    await embedder.compute(1000);
  
    // Get the normalized coordinates of the data
    return await embedder.coordsArray();
  }
docs: /*
  Computes our embedding.
  
  This runs the T-SNE algorithm over our data tensor
  and returns x,y coordinates in embedding space.