Code for Kaggle KDD Cup 2014