question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding `scipy.spatial.distance.cdist` & `scipy.spatial.distance.pdist`

See original GitHub issue

Description

Would be good to have CuPy implementations of scipy.spatial.distance.cdist and scipy.spatial.distance.pdist. This would allow for fast distance computations with CuPy.

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
cjnoletcommented, Jan 11, 2022

We are currently working to expose much of the scipy.spatial.distance package through RAFT into cupy.

1reaction
jakirkhamcommented, Jan 11, 2022

Oops 😅 Didn’t realize there was already an issue. Let’s close here and follow up there 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

scipy.spatial.distance.pdist — SciPy v1.9.3 Manual
Computes the distance between m points using Euclidean distance (2-norm) as the distance metric between the points. The points are arranged as m...
Read more >
How does condensed distance matrix work? (pdist)
A condensed distance matrix as returned by pdist can be converted to a full distance matrix by using scipy.spatial.distance.squareform :
Read more >
cupyx.scipy.spatial.distance.cdist — CuPy 12.0.0b2 ...
cupyx.scipy.spatial.distance.cdist(XA, XB, metric='euclidean', out=None, ... Compute distance between each pair of the two collections of inputs. Parameters.
Read more >
Python - Distance between collections of inputs - GeeksforGeeks
from scipy.spatial.distance import cdist. a = [[ 1 , 3 , 27 ], [ 3 , 6 , 8 ]]. arr1 = cdist(a,...
Read more >
Implement all `scipy.spatial.distance` metrics in `_ ... - GitHub
This issue is to track progress of migrating scipy.spatial.distance per-metric cdist/pdist implementations from the original _distance_wrap module to the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found