wilsonjr / humap

Hierarchical Uniform Manifold Approximation and Projection
BSD 3-Clause "New" or "Revised" License
233 stars 8 forks source link

Configurable n_components for low dimensional embedding #9

Open adsharma opened 5 months ago

adsharma commented 5 months ago

Thank you for writing a much faster implementation of this concept.

In umap, it's possible to get an embedding in a single dimension by specifying n_components=1. Is there a way to do it in humap? If not, could you please consider this enhancement?

wilsonjr commented 1 month ago

Hi @adsharma, this is interesting. What type of applications you think of using hierarchical embeddings with n_components=1?

adsharma commented 1 month ago

@wilsonjr many databases are able to partition based on a single dimsensional column such as ID or date. I suspect your focus is on n_components=2 because of the applications in 2D visualization. For apps such as database partitioning, 1D works better, although there are databases which can index 2D spaces. But implementations are not as mature.