-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Haversine nn #13289
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
Haversine nn #13289
Conversation
modify X = rng.rand(12, 2) delete unnecessary code lines
When I merge master, this imports was wrong on my local.
| S = pairwise_distances(X, Y, metric="haversine") | ||
| S2 = haversine_distances(X, Y) | ||
| assert_array_almost_equal(S, S2) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code below used to run on a different X
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure?
I might be wrong but I cannot find a test with a different X in the git history (the example in the docstring was changed to real places long./lat. but not this test).
|
The original PR #12568 ended up being merged. Closing. Thanks for contributing @zanospi ! |
Reference Issues/PRs
Fixes issue #12552
Takes over #12568
What does this implement/fix? Explain your changes.
Fix some formatting issues (lines length, hanging space & under-indentation) raised by flake8
Fix tests that were failing (haversine for sparse matrix, slicing issue in a test)
@rth @eamanu