MATLAB scripts to reproduce the results of our AISTATS 2012 paper