tree: 5828283cb246684460356a263d21384e233dfbb3 [path history] [tgz]
  1. metric.py
  2. model.py
  3. README.md
  4. train.py
example/sparse/factorization_machine/README.md

Factorization Machine

This example trains a factorization machine model using the criteo dataset.

Download the Dataset

The criteo dataset is available at https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#criteo The data was used in a competition on click-through rate prediction jointly hosted by Criteo and Kaggle in 2014, with 1,000,000 features. There are 45,840,617 training examples and 6,042,135 testing examples. It takes more than 30 GB to download and extract the dataset.

Train the Model

  • python train.py --data-train /path/to/criteo.kaggle2014.test.svm --data-test /path/to/criteo.kaggle2014.test.svm

Rendle, Steffen. “Factorization machines.” In Data Mining (ICDM), 2010 IEEE 10th International Conference on, pp. 995-1000. IEEE, 2010.