-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EulerNet model from SIGIR23 (#107)
- Loading branch information
Showing
9 changed files
with
316 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### Tiny data for tests only | ||
tiny_npz: | ||
data_root: ../../data/ | ||
data_format: npz | ||
train_data: ../../data/tiny_npz/train.npz | ||
valid_data: ../../data/tiny_npz/valid.npz | ||
test_data: ../../data/tiny_npz/test.npz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Base: | ||
model_root: './checkpoints/' | ||
num_workers: 3 | ||
verbose: 1 | ||
early_stop_patience: 2 | ||
pickle_feature_encoder: True | ||
save_best_only: True | ||
eval_steps: null | ||
debug_mode: False | ||
group_id: null | ||
use_features: null | ||
feature_specs: null | ||
feature_config: null | ||
|
||
EulerNet_test: # This is a config template | ||
model: EulerNet | ||
dataset_id: tiny_npz | ||
loss: 'binary_crossentropy' | ||
metrics: ['logloss', 'AUC'] | ||
task: binary_classification | ||
optimizer: adam | ||
shape: [52] | ||
net_ex_dropout: 0.1 | ||
net_im_dropout: 0.1 | ||
layer_norm: true | ||
learning_rate: 1.0e-3 | ||
embedding_regularizer: 0 | ||
net_regularizer: 0 | ||
batch_size: 10000 | ||
embedding_dim: 10 | ||
epochs: 100 | ||
shuffle: True | ||
seed: 2021 | ||
monitor: {'AUC': 1, 'logloss': -1} | ||
monitor_mode: 'max' | ||
|
||
EulerNet_test: # This is a config template | ||
model: EulerNet | ||
dataset_id: TBD | ||
loss: 'binary_crossentropy' | ||
metrics: ['logloss', 'AUC'] | ||
task: binary_classification | ||
optimizer: adam | ||
shape: [20] | ||
net_ex_dropout: 0.0 | ||
net_im_dropout: 0.0 | ||
layer_norm: true | ||
learning_rate: 1.0e-3 | ||
embedding_regularizer: 0 | ||
net_regularizer: 0 | ||
batch_size: 10000 | ||
embedding_dim: 10 | ||
epochs: 100 | ||
shuffle: True | ||
seed: 2021 | ||
monitor: {'AUC': 1, 'logloss': -1} | ||
monitor_mode: 'max' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# pip install -U fuxictr | ||
import fuxictr | ||
assert fuxictr.__version__ >= "2.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Tuning | ||
The detailed tuning config files are provided in this repo: https://github.com/Ethan-TZ/EulerNet/tree/main/%23Code4FuxiCTR%23. | ||
|
||
## Cite | ||
|
||
If you find EulerNet useful for your research or development, please cite the following papers: [EulerNet](https://dl.acm.org/doi/10.1145/3539618.3591681). | ||
|
||
```bibtex | ||
@inproceedings{tian2023eulernet, | ||
title = {EulerNet: Adaptive Feature Interaction Learning via Euler's Formula for CTR Prediction}, | ||
author = {Tian, Zhen and Bai, Ting and Zhao, Wayne Xin and Wen, Ji-Rong and Cao, Zhao}, | ||
booktitle = {Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval}, | ||
pages = {1376–1385}, | ||
year = {2023}, | ||
} | ||
``` |
Oops, something went wrong.