Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
scipy_cdist.py
from scipy.spatial.distance import cdist
def scipy_cdist(X,Y):
return cdist(X,Y,metric='euclidean')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment