lmcinnes / umap

Uniform Manifold Approximation and Projection
BSD 3-Clause "New" or "Revised" License
7.39k stars 803 forks source link

How to combine UMAP models in new data? #1088

Open tauming opened 8 months ago

tauming commented 8 months ago

Hi,

I conducted dimension reduction using 2 separate UMAP models (one for numeric data, and one for categorical data). I then combined the 2 models using the "union_intersection_mapper" approach (https://umap-learn.readthedocs.io/en/latest/composing_models.html), to produce the final embedding matrix

When I have a new set of data, how do I use the "transform" function to predict the final embedding matrix? I can use the transform function for the 2 models separately, but I cannot merge the 2 models together (in the new data).

Thanks