Eclectic collection of Python resources, solutions, etc.
Happy Pythoning!
-
Compute 1.3 billion cosine distances on a laptop in ~35 seconds.
I needed to compute pairwise cosine distances for a large list of high-dimensional vectors. After a couple of (very bad) possible solutions I found a reasonable one, of course, standing on the shoulders of giants. It is pretty much a one-liner and you don't need to care about manually splitting/parallelizing things. This is a quick write-up for other people to save that time. -
Interactive visualization of a 2D embedding.
Take a quick look at your 2D projected your data in 2D see if it makes any (human) sense. -
Python Gotchas
The awesomeness of Python and its third party libraries comes with behaviours that sometimes make us chase silly bugs for hours. This is an ad eternum growing collection of those headaches.
