GithubHelp home page GithubHelp logo

fuyuanlyu / optinter Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 3.0 23 KB

This repository contains PyTorch Implementation of ICDE 2022 paper: Memorize, factorize, or be naive: Learning optimal feature interaction methods for CTR Prediction.

License: Apache License 2.0

Python 100.00%

optinter's Introduction

PWC PWC PWC

OptInter

This repository contains PyTorch Implementation of ICDE 2022 paper:

Memorize, factorize, or be naive: Learning optimal feature interaction methods for CTR Prediction.

You can find our paper here.

Usage

Following the steps below to run our codes:

Install

pip install -r requirements.txt

Download Dataset

Please Download the Criteo and Avazu datasets.

  • For Criteo dataset, copy the train.txt file under datasets/Criteo and rename it to full.txt.
  • For Avazu dataset, copy the train.csv file under datasets/Avazu and rename it to full.csv.

Preprocess Dataset

  • For Criteo dataset, run python preprocess/criteo.py
  • For Avazu dataset, run python preprocess/avazu.py

Search

  • For Criteo dataset, run python learn/CriteoSearch.py
  • For Avazu dataset, run python learn/AvazuSearch.py

Re-train

  • For Criteo dataset, run python learn/CriteoTrain.py --load XXX --model DNN_cart --alpha_mode 0
  • For Avazu dataset, run python learn/AvazuTrain.py --load XXX --model DNN_cart --alpha_mode 0

Here XXX indicates the logs dictionary generated during the search stage.

Baseline Running

  • For Criteo dataset, run python learn/CriteoTrain.py --model YYY
  • For Avazu dataset, run python learn/AvazuTrain.py --model YYY

Here YYY could be {LR, FM, FNN, IPNN, DeepFM, PIN, Poly2, DNN_cart}

Citation

@inproceedings{OptInter,
  author       = {Fuyuan Lyu and
                  Xing Tang and
                  Huifeng Guo and
                  Ruiming Tang and
                  Xiuqiang He and
                  Rui Zhang and
                  Xue Liu},
  title        = {Memorize, Factorize, or be Naive: Learning Optimal Feature Interaction
                  Methods for {CTR} Prediction},
  booktitle    = {38th {IEEE} International Conference on Data Engineering, {ICDE} 2022},
  pages        = {1450--1462},
  address      = {Kuala Lumpur, Malaysia},
  publisher    = {{IEEE}},
  year         = {2022},
  url          = {https://doi.org/10.1109/ICDE53745.2022.00113},
  doi          = {10.1109/ICDE53745.2022.00113},
  timestamp    = {Sun, 30 Jul 2023 12:39:38 +0200},
  biburl       = {https://dblp.org/rec/conf/icde/LyuTGTHZL22.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}

optinter's People

Contributors

fuyuanlyu avatar

Stargazers

HoangNQK avatar  avatar  avatar zhangtao avatar kevin avatar Shaowen Lin avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.