Skip to content

Latest commit

 

History

History
44 lines (44 loc) · 1006 Bytes

README.md

File metadata and controls

44 lines (44 loc) · 1006 Bytes

SGAMER

  1. If you just want to validate the model on the Amazon Musical Instruments dataset, run the following command:
cd model
python recommendation.py

  1. If you want to retrain the model, follow these steps:

Data Preparation

  1. 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

Excute

  1. Data preprocessing
python data_processing.py
  1. node embedding
python embedding_node.py
  1. Path representation learning for item-item
python item_item_representation.py
  1. Path representation learning for user-item
python user_item_representation.py
  1. Sampling meta-path instances
python generate_paths.py
  1. Meta-path Instance Representation Learning
python meta_path_representation.py
  1. run SGAMER
python recommendation.py