This code is based on great work of libffm, https://github.com/guestwalk/libffm
A light-weight ffm with optimized out-of-core performance. This contributes to the 3rd place winning solution of outbrain AD click prediction contest, https://www.kaggle.com/c/outbrain-click-prediction
Plese see light-ffm.pdf for details.