Tuesday, January 22, 2013

Clojure goes to Washington

Congressional Partisanship (by roll-call votes)
A year or two ago I created a project for tracking congressional partisanship over time using roll-call votes. More recently I rebuilt the project using Clojure. Even more recently I added a page to explain and show off the results.

I've open sourced it for whoever is interested. There's some code that uses Enlive to scrape official vote data for the House and Senate. There's also a bit of code for transforming the raw data into interesting metrics. And finally, there's a process for transforming the daily metrics into a moving average and exports it to a dygraph friendly format.

All in all, it was a fun little project that gave me the chance to toy with few new (at least to me) libraries and practice my Clojure. It also confirmed the (perhaps obvious) observation that congressional politics has been remarkably nasty in recent years.


Monday, January 21, 2013

(+ clojure big-ml)

I've been working on a Clojure library for the BigML machine learning API and we recently released it into the wild.


Thursday, June 21, 2012

Reservoir Sampling in Clojure

Update

I now have a whole fancy library for random sampling in Clojure, including reservoir sampling with lots of extras (with and without replacement, weighting, seeds). It's available here:
https://github.com/bigmlcom/sampling

A little snippet of Clojure for reservoir sampling: