Python
-
Explicit Currying in Python
Last week, I talked about currying a little bit, and I’ve been thinking about how one could do in languages…
Read More » -
Eventually Correct: Async Testing With Tornado
Async frameworks like Tornado scramble our usual unittest strategies: how can you validate the outcome when you do not know…
Read More » -
Python: matplotlib hangs and shows nothing (Mac OS X)
I’ve been playing around with some of the matplotlib demos recently and discovered that simply copying one of the examples…
Read More » -
PyMongo And Key Order In Subdocuments
Or, "Why does my query work in the shell but not PyMongo?" Variations on this question account for a large…
Read More » -
Python: Simplifying the creation of a stop word list with defaultdict
I’ve been playing around with topics models again and recently read a paper by David Mimno which suggested the following…
Read More » -
Python: Checking any value in a list exists in a line of text
I’ve been doing some log file analysis to see what cypher queries were being run on a Neo4j instance and…
Read More » -
Python/Neo4j: Finding interesting computer sciency people to follow on Twitter
At the beginning of this year I moved from Neo4j’s field team to dev team and since the code we…
Read More » -
Python: Streaming/Appending to a file
I’ve been playing around with Twitter’s API (via the tweepy library) and due to the rate limiting it imposes I…
Read More » -
Python: scikit-learn – Training a classifier with non numeric features
Following on from my previous posts on training a classifier to pick out the speaker in sentences of HIMYM transcripts…
Read More »