What is Nostr?
Andrej Karpathy / @karpathy (RSS Feed) /
npub1rj7…ffmk
2023-04-14 23:53:09

Andrej Karpathy / @karpathy (RSS Feed) on Nostr: Random note on k-Nearest Neighbor lookups on embeddings: in my experience much better ...

Random note on k-Nearest Neighbor lookups on embeddings: in my experience much better results can be obtained by training SVMs instead. Not too widely known.

Short example:

github.com/karpathy/randomfu… (https://github.com/karpathy/randomfun/blob/master/knn_vs_svm.ipynb)

Works because SVM ranking considers the unique aspects of your query w.r.t. data.

https://nitter.moomoo.me/karpathy/status/1647025230546886658#m
Author Public Key
npub1rj7u39tvjdgfpzg3c3xfym6vzalt34p7t5uvdsqhzgst9jtl7dgqs2ffmk