Fit outside data using precomputed space. #650
-
Hello, I'm wondering if new data can be fit to a model trained using a precomputed distance metric? The current code-base throws a warning about this when using precomputed metrics. But intuitively, one needs only to supply precomputed distances between each out-of-sample node and the set of within-sample nodes to fit new data. What else is going on? Many thanks, in advance, -Jacob |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I see a note about this in the PR archives: #639 (comment) Seems like the intuition was a good one +1 |
Beta Was this translation helpful? Give feedback.
-
Yes, it is now possible if you pull the latest version on github. That feature is newer than the latest release onto PyPI however, so if you are installing from pip or conda it won't be available. |
Beta Was this translation helpful? Give feedback.
-
Perfect. I'm just glad (for posterity) that there isn't something in the mere calculation of distance functions that UMAP (and other algorithms?) needs. Rather, an empirically predefined distance metric space is sufficient to compute dimensionality reduction of outside points. |
Beta Was this translation helpful? Give feedback.
I see a note about this in the PR archives: #639 (comment)
Seems like the intuition was a good one +1