Computes the Cosine distance between 1-D arrays.
The Cosine distance between u and v, is defined as
where is the dot product of and .
u : (N,) array_like
Input array.
v : (N,) array_like
cosine : double
The Cosine distance between vectors u and v.
scipy.spatial.distance.correlation
scipy.spatial.distance.dice
Enter search terms or a module, class or function name.