[FEA] UMAP Python API to accept kNN graph directly #1733
Labels
Algorithm API Change
For tracking changes to algorithms that might effect the API
Cython / Python
Cython or Python issue
feature request
New feature or request
Both t-SNE and UMAP compute KNN indices and distances in the first stage of their computation and it is the kNN stage that needs to support different distance measures and metrics.
There are several reasons why being able to accept the kNN distances and indices is beneficial:
There is also a project on pypi called “umap-learn-modified” (https://pypi.org/project/umap-learn-modified/) that we might be able to use for API inspiration: https://github.com/lilab-bcb/umap/blob/master/umap/umap_.py#L1316.
This should mostly require python changes, as the input would just be bypassing the building of the kNN on the c++ side. It’s important that if fit() takes a kNN, the transform() also take a kNN, and assume the same metric was used.
The text was updated successfully, but these errors were encountered: