I am new to Numpy and I would like to ask you how to calculate euclidean distance between points stored in a vector.
Let\'s assume that we have a numpy.array each ro
import numpy as np def distance(v1, v2): return np.sqrt(np.sum((v1 - v2) ** 2))