Skip to content

njuhugn/CE-SCE-LLMRec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements:

Python==3.9 | PyTorch==1.12.1 | TorchData==0.4.1 | FreeRec==0.6.3

Use the following commands to prepare the environment (CUDA: 11.3):

conda create --name=PyT12 python=3.9; conda activate PyT12; bash setup_env.sh

Usage

This repo separately provides the implementaion of each conventional method mentioned in the paper. They can be conducted as follows

  • CE:
python main.py --config=configs/AmazonBeauty_550_Chron.yaml --loss=CE
  • BCE:
python main.py --config=configs/AmazonBeauty_550_Chron.yaml --loss=BCE --num-negs=1 --neg-pool=unseen
  • BPR:
python main.py --config=configs/AmazonBeauty_550_Chron.yaml --loss=BPR --num-negs=1 --neg-pool=unseen
  • SSM:
python main.py --config=configs/AmazonBeauty_550_Chron.yaml --loss=SCE --alpha=1 --neg-pool=all
  • SCE:
python main.py --config=configs/AmazonBeauty_550_Chron.yaml --loss=SCE --alpha=100 --neg-pool=all

Note: Refer to benchmarks for logs of 5 independent runs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Shell 0.4%