Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UMAP from distance matrix? #8

Closed
robertfeldt opened this issue Apr 8, 2019 · 5 comments
Closed

UMAP from distance matrix? #8

robertfeldt opened this issue Apr 8, 2019 · 5 comments

Comments

@robertfeldt
Copy link

Having read the UMAP paper it seems to me that one should be able to use UMAP even for data which is not represented as a vector of float's, e.g. when one only has a full distance matrix. Any plans to support this in UMAP.jl?

@dillondaudert
Copy link
Owner

This is possible, and already supported in the Python umap; implementing it in UMAP.jl should be relatively straightforward. I'll try to get to it in the next week or so.

@robertfeldt
Copy link
Author

Thanks, appreciated.

@dillondaudert
Copy link
Owner

I still need to add documentation, but you can test this out on the dist_matrix branch. The API is the same, just pass in your distance matrix as X and the metric keyword arg as Precomputed().

@dillondaudert
Copy link
Owner

Just changed this a bit; instead of passing a type, pass the symbol :precomputed

@dillondaudert
Copy link
Owner

dillondaudert commented Apr 29, 2019

Released v0.1.3 with this functionality implemented #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants