diff --git a/README.md b/README.md index 6eefcf20..a48efcbe 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Description of the algorithm parameters can be found in [ALGO_PARAMS.md](ALGO_PA | ------------- |:---------------:| -----------------------:| |Squared L2 |'l2' | d = sum((Ai-Bi)^2) | |Inner product |'ip' | d = 1.0 - sum(Ai\*Bi) | -|Cosine similarity |'cosine' | d = 1.0 - sum(Ai\*Bi) / sqrt(sum(Ai\*Ai) * sum(Bi\*Bi))| +|Cosine distance |'cosine' | d = 1.0 - sum(Ai\*Bi) / sqrt(sum(Ai\*Ai) * sum(Bi\*Bi))| Note that inner product is not an actual metric. An element can be closer to some other element than to itself. That allows some speedup if you remove all elements that are not the closest to themselves from the index.