Last active
February 12, 2019 22:05
-
-
Save michaelChein/05cd582462193233553d383ecce2938c to your computer and use it in GitHub Desktop.
Euclidean code for medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result = [] | |
for i,_ in enumerate(data): | |
for j,_ in enumerate(data): | |
result[i,j] = np.sqrt(np.sum((data[i,:]-data[j,:])**2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment