This is the Pytorch implementation for the paper: Knowledge Graph Contrastive Learning for Recommendation, with CF learning part based on LightGCN
pip install -r requirements.txt
We provide three processed datasets: Yelp2018 and Amazon-book and MIND.
run KGCL on Yelp2018 dataset:
- change base directory
Change ROOT_PATH
in code/world.py
- command
cd code && python main.py --dataset="yelp2018"