Practical overview
When it fits
Use it when you want a code-level starting point for training and evaluating NGCF recommendation experiments, especially with the documented datasets and software versions.
Who it is for
- Researchers and students studying neural graph collaborative filtering.
- Developers experimenting with user-item recommendation models in Python and PyTorch.
Documented uses
- Train an NGCF model on the documented Gowalla or Amazon-book example dataset.
- Evaluate recommendation rankings with recall, precision, hit rate and NDCG.
- Adapt the training code to another user-item dataset, with possible loader and preprocessing changes.
Requirements & limits
- The documented setup uses Python 3.6.9, PyTorch 1.3.1, NumPy 1.18.1, SciPy 1.3.2 and scikit-learn 0.21.3.
- The README supplies example commands for Gowalla and Amazon-book but does not document data acquisition or preparation.
- The repository states that enabling node dropout increases computational cost.
- The repository has no stated license.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run a documented Gowalla training example
Train and evaluate NGCF on Gowalla using the repository's example command.
Before you start
- Python 3.6.9
- PyTorch 1.3.1
- NumPy 1.18.1
- SciPy 1.3.2
- scikit-learn 0.21.3
Steps
Install the documented package versions in a Python 3.6.9 environment.
Obtain and prepare Gowalla data in the format expected by the repository.
From the repository, run: python main.py --dataset gowalla --regs [1e-5] --embed_size 64 --layer_size [64,64,64] --lr 0.0001 --save_flag 1 --pretrain 0 --batch_size 1024 --epoch 400 --verbose 1 --node_dropout [0.1] --mess_dropout [0.1,0.1,0.1].
Expected outcome
The example trains the model and reports ranking evaluation metrics; the README lists recall, precision, hit rate and NDCG.
Guide limitations
- The README documents the command but does not provide dataset acquisition or preparation instructions.
- Enabling the node-dropout flag increases computational cost.
- The documented testing environment is Python 3.6.9 with the listed dependency versions.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 20 November 2026
- Original website title
- huangtinglin/NGCF-PyTorch · Official homepage title · retained in its source language

