Cosine similarity
One last geometrical distance is called cosine similarity or cosine distance. The
beauty of this distance is its sheer speed at calculating distances between sparse vec‐
tors. For instance if we had 1,000 attributes collected about houses and 300 of these
were mutually exclusive (meaning that one house had them but the others don’t),
then we would only need to include ...