CNevd / libffm-ftrl

libffm with ftrl updater
BSD 3-Clause "New" or "Revised" License
93 stars 38 forks source link

LIBFFM is a library for field-aware factorization machine. For the formulation it solves, please check:

http://www.csie.ntu.edu.tw/~r01922136/slides/ffm.pdf

NOTE: This project is libffm with FTRL updater(original is SGD), so the usage is little different

It can be Factorization Machines with Follow-The-Regularized-Leader for CTR prediction in Display Advertising when we set all fields the same

Table of Contents

Overfitting and Early Stopping

FFM is prone to overfitting, and the solution we have so far is early stopping. To avoid overfitting, we recommend always provide a validation set with option -p.' You can use option--auto-stop' to stop at the iteration that reaches the best validation loss:

Installation

Requirement: LIBFFM is written in C++. It requires C++11 and OpenMP supports. If OpenMP is not available on your platform, please refer to section `OpenMP.'

Data Format

The data format of LIBFFM is: