Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Fl_chart | 5,928 | 7 | 16 | a day ago | 87 | June 10, 2023 | 239 | mit | Dart | |
FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart. | ||||||||||
Ogb | 1,721 | 22 | 2 months ago | 19 | November 02, 2022 | 19 | mit | Python | ||
Benchmark datasets, data loaders, and evaluators for graph machine learning | ||||||||||
Cogdl | 1,437 | 1 | 5 months ago | 17 | June 01, 2022 | 34 | mit | Python | ||
CogDL: A Comprehensive Library for Graph Deep Learning (WWW 2023) | ||||||||||
Graph2vec | 791 | a year ago | 1 | gpl-3.0 | Python | |||||
A parallel implementation of "graph2vec: Learning Distributed Representations of Graphs" (MLGWorkshop 2017). | ||||||||||
Stgcn_ijcai 18 | 723 | 7 months ago | 9 | bsd-2-clause | Python | |||||
[IJCAI'18] Spatio-Temporal Graph Convolutional Networks | ||||||||||
Knowledge Graph Learning | 662 | 8 months ago | 336 | mit | ||||||
A curated list of awesome knowledge graph tutorials, projects and communities. | ||||||||||
Sr Gnn | 607 | 2 years ago | 6 | Python | ||||||
[AAAI 2019] Source code and datasets for "Session-based Recommendation with Graph Neural Networks" | ||||||||||
Conve | 574 | a year ago | 22 | mit | Python | |||||
Convolutional 2D Knowledge Graph Embeddings resources | ||||||||||
Knowledge_graph_attention_network | 434 | 3 years ago | 24 | mit | Python | |||||
KGAT: Knowledge Graph Attention Network for Recommendation, KDD2019 | ||||||||||
Cleora | 434 | 5 months ago | 12 | other | Jupyter Notebook | |||||
Cleora AI is a general-purpose model for efficient, scalable learning of stable and inductive entity embeddings for heterogeneous relational data. |
This is the code for the AAAI 2019 Paper: Session-based Recommendation with Graph Neural Networks. We have implemented our methods in both Tensorflow and Pytorch.
Here are two datasets we used in our paper. After downloaded the datasets, you can put them in the folder datasets/
:
YOOCHOOSE: http://2015.recsyschallenge.com/challenge.html or https://www.kaggle.com/chadgostopp/recsys-challenge-2015
DIGINETICA: http://cikm2016.cs.iupui.edu/cikm-cup or https://competitions.codalab.org/competitions/11161
There is a small dataset sample
included in the folder datasets/
, which can be used to test the correctness of the code.
We have also written a blog explaining the paper.
You need to run the file datasets/preprocess.py
first to preprocess the data.
For example: cd datasets; python preprocess.py --dataset=sample
usage: preprocess.py [-h] [--dataset DATASET]
optional arguments:
-h, --help show this help message and exit
--dataset DATASET dataset name: diginetica/yoochoose/sample
Then you can run the file pytorch_code/main.py
or tensorflow_code/main.py
to train the model.
For example: cd pytorch_code; python main.py --dataset=sample
You can add the suffix --nonhybrid
to use the global preference of a session graph to recommend instead of the hybrid preference.
You can also change other parameters according to the usage:
usage: main.py [-h] [--dataset DATASET] [--batchSize BATCHSIZE]
[--hiddenSize HIDDENSIZE] [--epoch EPOCH] [--lr LR]
[--lr_dc LR_DC] [--lr_dc_step LR_DC_STEP] [--l2 L2]
[--step STEP] [--patience PATIENCE] [--nonhybrid]
[--validation] [--valid_portion VALID_PORTION]
optional arguments:
-h, --help show this help message and exit
--dataset DATASET dataset name:
diginetica/yoochoose1_4/yoochoose1_64/sample
--batchSize BATCHSIZE
input batch size
--hiddenSize HIDDENSIZE
hidden state size
--epoch EPOCH the number of epochs to train for
--lr LR learning rate
--lr_dc LR_DC learning rate decay rate
--lr_dc_step LR_DC_STEP
the number of epochs after which the learning rate
decay
--l2 L2 l2 penalty
--step STEP gnn propogation steps
--patience PATIENCE the number of epoch to wait before early stop
--nonhybrid only use the global preference to predict
--validation validation
--valid_portion VALID_PORTION
split the portion of training set as validation set
There are other implementation available for reference:
Please cite our paper if you use the code:
@inproceedings{Wu:2019ke,
title = {{Session-based Recommendation with Graph Neural Networks}},
author = {Wu, Shu and Tang, Yuyuan and Zhu, Yanqiao and Wang, Liang and Xie, Xing and Tan, Tieniu},
year = 2019,
booktitle = {Proceedings of the Twenty-Third AAAI Conference on Artificial Intelligence},
location = {Honolulu, HI, USA},
month = jul,
volume = 33,
number = 1,
series = {AAAI '19},
pages = {346--353},
url = {https://aaai.org/ojs/index.php/AAAI/article/view/3804},
doi = {10.1609/aaai.v33i01.3301346},
editor = {Pascal Van Hentenryck and Zhi-Hua Zhou},
}