$ ./guess_the_language
AI & ML
AI & ML · medium · #39
What is the cosine similarity of
a
and
b
?
a = [1, 0, 1] b = [1, 1, 0]
0.5
1.0
0.0
0.71
Dot product 1 divided by (sqrt(2) * sqrt(2)) = 1 / 2 = 0.5.
Play AI & ML ▸
◂ #38
all AI & ML questions
#40 ▸