Skip to content

Commit af8e779

Browse files
committed
init
1 parent eb0964c commit af8e779

16 files changed

+882188
-1
lines changed

README.md

+46-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,46 @@
1-
# DyHATR
1+
# DyHATR
2+
3+
This is the source code for ECML-PKDD 2020 paper ["Modeling Dynamic Heterogeneous Network forLink Prediction using Hierarchical Attentionwith Temporal RNN"](https://arxiv.org/abs/2004.01024).
4+
5+
6+
All readers are welcome to star/fork this repository and use it to reproduce our experiments or train your own data. Please kindly cite our paper:
7+
```
8+
@inproceedings{Xue2020DyHATR,
9+
title = {Modeling Dynamic Heterogeneous Network forLink Prediction using Hierarchical Attentionwith Temporal RNN},
10+
author = {Xue, Hansheng and Yang, Luwei and Jiang, Wen and Wei, Yi and Hu, Yi and Lin, Yu},
11+
booktitle = {Proceedings of the 2020 European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases (ECML-PKDD)},
12+
year = {2020},
13+
}
14+
```
15+
16+
## Requirement
17+
```
18+
Python 3.6
19+
networkx == 1.11
20+
numpy == 1.18
21+
sklearn == 0.22
22+
tensorflow == 1.14
23+
```
24+
25+
## Dataset
26+
In this resposity, we provide EComm dataset as an example, you can also download all the other datasets from the SNAP platform ([Twitter](http://snap.stanford.edu/data/higgs-twitter.html), and [Math-Overflow](http://snap.stanford.edu/data/sx-mathoverflow.html)). Besides, you can also use your own Dynamic Heterogeneous Networks dateset, as long as it fits the following template.
27+
```
28+
Node_one Node_two Edge_type Timestamp
29+
n1 n2 e1 1
30+
n1 n2 e2 2
31+
n1 n3 e2 2
32+
.
33+
.
34+
```
35+
36+
## Example Usage
37+
To reproduce the experiments on EComm dataset, simply run:
38+
```
39+
python3 src/main.py
40+
```
41+
42+
43+
### Acknowledgement
44+
The original version of this code base was originally forked from [GraphSAGE](https://github.com/williamleif/GraphSAGE), and [GAT](https://github.com/PetarV-/GAT), and we owe many thanks to these authors for making their code available. If you have some questions about the code or paper, you are welcome to open an issue or send us an email. We will respond to that as soon as possible.
45+
46+

0 commit comments

Comments
 (0)