Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Embedding Projector: reduce knn computation (#6321)
## Motivation for features / changes for t-SNE max number of knn neighbors is 3 * max_perplexity (3 * 100 = 300). For umap max number of neighbors is 100. let's just compute 300 knn neighbors so we can slice the result each time when we tweak perplexity for tSNE. ## Technical description of changes When computing KNN, use an upper threshold of 300 so any future computation with same number of points will be cached. ## Screenshots of UI changes N/A ## Detailed steps to verify changes work correctly (as executed by you) 1. Launch local app 2. Open t-SNE 3. adjust to Perplexity > 25 4. verify knn isn't computed a second time ## Alternate designs / implementations considered
- Loading branch information