Working through Programming Collective Intelligence (Machine Learning book) in Ruby