Vectorized spatial distance in python using numpy
There’s eucl_dist package (disclaimer: I am its author) that basically contains two methods to solve the problem of computing squared euclidean distances that are more efficient than SciPy’s cdist, especially for large arrays ( with decent to large number of columns). We will use some of the codes from its source code to adapt to … Read more