1
6.0kviews
Find Cosine Distance between the d1 and d2 vectors:
Index 1 2 3 4 5 6 7 8 9 10
d1 5 2 1 0 0 0 0 1 3 7
d2 5 2 1 0 0 1 2 2 0 2
1 Answer
1
938views

Cosine distance (d1,d2)=d1.d2||d1||.||d2||

d1.d2 = 5 x 5 + 2 x 2 + 1 x 1 + 0 + 0 + 0 + 0 + 1 x 2 + 0 + 7 x 2 = 25 + 4 + 1 + 2 + 14 = 46

|| …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.