Hacker News new | ask | show | jobs
by emehrkay 1867 days 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/