Submitted by TKMater t3_10y08vt in MachineLearning
how to calculate similarity between two vectors? I want a similarity metric that take into accounts both the directions and magnitudes of vectors.
Submitted by TKMater t3_10y08vt in MachineLearning
how to calculate similarity between two vectors? I want a similarity metric that take into accounts both the directions and magnitudes of vectors.
BenoitParis t1_j7v9wue wrote
Lots to choose from:
https://docs.scipy.org/doc/scipy/reference/spatial.distance.html
How do your vectors look like? What do you intend to do with them? Will you be clustering them? Indexing them? How many are there? How did you obtain them? What do they represent? What is their type?