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

Add Haversine distance metric #226

Open
mishooax opened this issue Aug 22, 2024 · 0 comments
Open

Add Haversine distance metric #226

mishooax opened this issue Aug 22, 2024 · 0 comments

Comments

@mishooax
Copy link

The Haversine (great-circle) distance metric would be IMO a very useful addition. It'd allow for better clustering of points residing on a sphere (particularly for point / node configurations where the Euclidean distance metric is not a good approximation):

https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.haversine_distances.html

I have written a hacky implementation (which essentially replaces the cosine similarity metric with the Haversine), that I can share if anyone would find it useful. But maybe we could find a better way to integrate this in the torch-cluster API, if there is interest?

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

1 participant