3 ms·
Cosine similarity is a great little tool to have in your box. When you have a map[dict|obj] with key => val(float) it is an easy way to compare a bunch of them.
by emehrkay 5y ago
Cosine similarity is a great little tool to have in your box. When you have a map[dict|obj] with key => val(float) it is an easy way to compare a bunch of them. Years ago I threw together an example in JS
https://jsfiddle.net/25o78yzt/3/ https://jsfiddle.net/25o78yzt/3/