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

[Feature] Other distances besides Euclidean #32

Open
akshayka opened this issue Apr 22, 2021 · 4 comments
Open

[Feature] Other distances besides Euclidean #32

akshayka opened this issue Apr 22, 2021 · 4 comments

Comments

@akshayka
Copy link
Member

The quality of an embedding in PyMDE is judged by the collection of of Euclidean distances between pairs of embedding distances.

Euclidean distance is natural for visualization, since it is the distance that humans use in the real world. It is also closely related to the standardization constraint (which puts an upper bound on the sum of squared Euclidean distances between embedding vectors).

There is nothing in the underlying optimization algorithm or code that requires the distances to be Euclidean, and the code could easily be extended to support other distances.

If this is something that you actively want, please react with a 👍 on this post.

@ivan-marroquin
Copy link

Hi @akshayka

Thanks for asking for feedback. With my datasets, it seems that minkowski with p < 1 is a better choice to deal with the issue of distance concentration. I noticed that PyNNDescent supports several metrics including custom ones.

@akshayka
Copy link
Member Author

akshayka commented Jul 3, 2021

@ivan-marroquin ,

To clarify, do you want to use a different metric to measure the k-nearest neighbors of original data? Or do you want to use a different metric to measure distances in the embedding?

I'm guessing the former, because you mentioned PyNNDescent. But just thought I'd double check.

@ivan-marroquin
Copy link

Hi @akshayka

Correct, I believe that it will be beneficial to use PyNNDescent to measure the -k-nearest neighbors, so then PyMDE can be used to compute a lower dimension while preserving neighbors.

Ivan

@schinto
Copy link

schinto commented Aug 30, 2021

Can you please provide the Tanimoto distance (often used to compare molecular fingerprints) and Gower's distance (for mixed data records like patient data) as additional metrics in PyMDE?

Thanks,
Torsten

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

3 participants