code used for the Kaggle competition: "Allstate Purchase Prediction Challenge" https://www.kaggle.com/c/allstate-purchase-prediction-challenge/forums