Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def dist(x, y):
- return np.sqrt(np.sum((x - y)**2)) # np.sqrt and np.sum are numpy functions to work with numpy arrays
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement