- If you just want to validate the model on the Amazon Musical Instruments dataset, run the following command:
cd model
python recommendation.py
- If you want to retrain the model, follow these steps:
- The dataset is available for download at Amazon.,The main download files are "metadata" and "ratings only"
mkdir dataset
cd dataset
mkdir {dataset_name} #Different datasets are stored in different folders
- Data preprocessing
python data_processing.py
- node embedding
- Path representation learning for item-item
python item_item_representation.py
- Path representation learning for user-item
python user_item_representation.py
- Sampling meta-path instances
- Meta-path Instance Representation Learning
python meta_path_representation.py
- run SGAMER