You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement haversine metric in pairwise, document properly #4453
See #4452.
The haversine metric is implemented in the neighbors trees, but not in pairwise module, which results in odd crashes.
Also, the neighbors module does not list the haversine metric as one of the available metrics in the docstring.
Haversine pairwise distances seems only to be directly accessible through sklearn.neighbors.DistanceMetric.get_metric('haversine').pairwise. This method doesn't use joblib, unlike pairiwise?
Activity
Fix scikit-learn#4453, add haversine distrance for pairwise_distances
Fix scikit-learn#4453, add haversine distrance for pairwise_distances
Fix scikit-learn#4453, add haversine distrance for pairwise_distances
Fix scikit-learn#4453, add haversine distrance for pairwise_distances
dshieble commentedon Dec 6, 2015
Hi @amueller, does this issue still need someone? I'd be happy to work on this.
amueller commentedon Dec 10, 2015
there is a pull request at #dshieble. You can see if you can help there, though.
jnothman commentedon Jun 14, 2017
We should probably have a test that every metric supported by neighbors is supported by pairwise_distances, no?
jzf2101 commentedon Jul 12, 2017
Haversine pairwise distances seems only to be directly accessible through
sklearn.neighbors.DistanceMetric.get_metric('haversine').pairwise. This method doesn't use joblib, unlike pairiwise?rth commentedon Nov 9, 2018
Having a test would certainly help, and by default maybe we should ideed fall back to
DistanceMetric.get_metric(metric_name).pairwisein this case.#4458 needs benchmarking
There is also some related discussion in #12552