README.md 698 Bytes
Newer Older
1
2
3
# PinSage model

NOTE: this version is not using NodeFlow yet.
4
5
      
This example only work with Python 3.6+
6

Jinjing Zhou's avatar
Jinjing Zhou committed
7
First, download and extract from https://data.dgl.ai/dataset/ml-1m.tar.gz
8
9
10
11

One can then run the following to train PinSage on MovieLens-1M:

```bash
Quan (Andy) Gan's avatar
Quan (Andy) Gan committed
12
python3 main.py --opt Adam --lr 1e-3
13
14
15
16
17
```

One can also incorporate user and movie features into training:

```bash
Quan (Andy) Gan's avatar
Quan (Andy) Gan committed
18
python3 main.py --opt Adam --lr 1e-3 --use-feature
19
20
21
22
23
```

Currently, performance of PinSage on MovieLens-1M has the best mean reciprocal rank of
0.032298±0.048078 on validation (and 0.033695±0.051963 on test set for the same model).
The Implicit Factorization Model from Spotlight has a 0.034572±0.041653 on the test set.