これは、PyTorch に基づく SIGIR 2023 論文「When Search Meets Recommendation: Learning Disentangled Search Representation for Recommendation」の正式な実装です。
[arXiv] [ACM デジタル ライブラリ]
SESRec の主な実装は、ファイルmodels/SESRec.py
にあります。 SESRec のアーキテクチャを次の図に示します。
よくある質問のいくつかをFAQ.md
ファイルにまとめました。
実験を再現するには、次の手順を確認してください。
両方のデータセットの SESRec のすべてのハイパーパラメータ設定は、ファイルconfig/SESRec_commercial.yaml
およびconfig/SESRec_amazon.yaml
にあります。 2 つのデータセットの設定は、ファイルconfig/const.py
にあります。
Kuaishou データセットは独自の産業データセットであるため、ここでは Amazon (Kindle ストア) データセットのすぐに使用できるデータを公開します。すぐに使用できるデータはリンクからダウンロードできます。
このリンクからデータをダウンロードして解凍します。データ ファイルをdata
フォルダーに配置します。
実験は次の Python パッケージを使用して行われました。
python==3.8.13
torch==1.9.0
numpy==1.23.2
pandas==1.4.4
scikit-learn==1.1.2
tqdm==4.64.0
PyYAML==6.0
コマンドラインでコードを実行します。
python3 main.py --name SESRec --workspace ./workspace/SESRec --gpu_id 0 --epochs 30 --model SESRec --batch_size 256 --dataset_name amazon
トレーニング後、ログ ファイル ( workspace/SESRec/log/default.log
など) を確認します。
実験は以下の環境で実施しました。
このリポジトリを使用する場合は、論文を引用してください。
@inproceedings{si2023SESRec,
author = {Si, Zihua and Sun, Zhongxiang and Zhang, Xiao and Xu, Jun and Zang, Xiaoxue and Song, Yang and Gai, Kun and Wen, Ji-Rong},
title = {When Search Meets Recommendation: Learning Disentangled Search Representation for Recommendation},
year = {2023},
isbn = {9781450394086},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3539618.3591786},
doi = {10.1145/3539618.3591786},
booktitle = {Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval},
pages = {1313–1323},
numpages = {11},
keywords = {search, contrastive learning, disentanglement learning, recommendation},
location = {Taipei, Taiwan},
series = {SIGIR '23}
}
ご質問がございましたら、電子メール [email protected] または GitHub の問題を通じてお気軽にお問い合わせください。ありがとう!