RunlongYu / CELS

【PyTorch】Easy-to-use package of Cognitive Evolutionary Search (CELS) for Click-Through Rate Prediction

Home Page:https://doi.org/10.1145/3580305.3599277

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CELS

PWC PWC

This repository serves as the official implementation for the KDD 2023 Paper titled, "Cognitive Evolutionary Search to Select Feature Interactions for Click-Through Rate Prediction". For a deeper understanding, kindly check out the Promotional Video, Slides, 中文解读.

Requirements

  • Ensure you have Python and PyTorch (version 1.8 or higher) installed. Our setup utilized Python 3.8 and PyTorch 1.13.0.
  • Should you wish to leverage GPU processing, please install CUDA.

Before Start

Before proceeding with the preprocessing, ensure you run the ./data/mkdir.sh

Upon completion, you'll observe the following three directory structures created at the same level as the project:

criteo
├── bucket
├── feature_map
└── processed

avazu
└── processed

huawei
└── processed

Datasets

We conducted our experiments using three publicly available real-world datasets: Avazu, Criteo, and Huawei. You can access and download these datasets from the links provided below.

Example

If you've acquired the source code, you can train the CELS model.

$ cd main
$ python train.py --dataset=[dataset] --strategy=[strategy]  --gpu=[gpu_id] 

The options for the command parameter "strategy" are ['1,1', '1+1', 'n,1', 'n+1'].

You can change the model parameters in ./config/configs.py

Visualization of Evolution Path

You can visualize the evolution path depicted by gene maps of the model.

$ cd main
$ python plotUtils.py --dataset_strategy=[dataset_strategy]  --datetime=[datetime]

Contact

Should you have any questions regarding our paper or codes, please don't hesitate to reach out via email at yrunl@mail.ustc.edu.cn or demon@mail.ustc.edu.cn.

Acknowledgment

Our code is developed based on GitHub - shenweichen/DeepCTR-Torch: 【PyTorch】Easy-to-use,Modular and Extendible package of deep-learning based CTR models.

About

【PyTorch】Easy-to-use package of Cognitive Evolutionary Search (CELS) for Click-Through Rate Prediction

https://doi.org/10.1145/3580305.3599277

License:MIT License


Languages

Language:Python 99.7%Language:Shell 0.3%