Skip to content

Commit

Permalink
Made mds tutorial example use normal distance instead of idiot cosine…
Browse files Browse the repository at this point in the history
… based one
  • Loading branch information
lisitsyn committed Sep 2, 2012
1 parent 10beb7a commit 091ebdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/edrt/tutorial_examples/mds.py
Expand Up @@ -33,7 +33,7 @@
for i in range(N):
for j in range(N):
distance_matrix[i,j] = \
np.cos(np.linalg.norm(feature_matrix[:,i]-feature_matrix[:,j],2))
np.linalg.norm(feature_matrix[:,i]-feature_matrix[:,j],2)
# create custom distance instance
distance = sg.CustomDistance(distance_matrix)
# construct embedding based on created distance
Expand Down

0 comments on commit 091ebdc

Please sign in to comment.