Revisiting, benchmarking, and refining Heterogeneous Graph Neural Networks.
2023.3.2 update: We make benchmark data including test set pulic. You can download data as follows:
Therefore, you can get your metric scores locally. Actually, when you run Simple-HGN in NC-benchmark and LP-benchmark, data will be downloaded automatically.
Warning: As we have opened test data, you should try not to overfit or leak data during training. For example, the order of test data is not random permuted. If you use BatchNorm, you will get a biased norm value.
We organize our repo by task, and one sub-folder per task. Currently, we have four tasks, i.e., node classification (NC), link prediction (LP), knowledge-aware recommendation (Recom) and text classification (TC).
This part refers to Section 3 and Table 1 in our paper.
This part refers to Section 4,5,6 in our paper.
We only make half of test labels public to prevent data leakage issues. The public half data is to help you debug locally. If you want to obtain test scores, you need to rename all the xxx_full to xxx in data folder and submit your prediction to our website.
For node classification and link prediction tasks, you can submit online. But for recommendation task, since the prediction files are too large to submit, you have to test offline by yourself.
If you want to show your method on our official leaderboard on HGB website, you can make an issue on this repo. Once your code or paper is verified, your method will be displayed on the official leaderboard.
Follow this roadmap in this repo:
NC or LP
|--benchmark
|--methods
|--HGNNs
See Get Started.
To prevent data leakage issues, we randomly replace the test set labels. Therefore, you can only get test scores after you submit your prediction to biendata competitions.
You can read the instructions in biendata competitions in "Data" and "Evaluation" panel. What should be noticed is that, your prediction files should be on the top level of the zipped file.
For example, you should submit a zip like this:
submit.zip
|--ACM_1.txt
|--ACM_2.txt
|--...
Instead of
submit.zip
|--submit/
|--ACM_1.txt
|--ACM_2.txt
|--...
It is recommended that zip a file using zip
command rather than right click. Because subfolder may be automatically built for some operating systems when using right click.
This repo is actively under development. Therefore, there are some extra experiments in this repo beyond our paper, such as graph-based text classification. For more information, see our website. Welcome contribute new tasks, datasets, methods to HGB!
Moreover, we also have an implementation of Simple-HGN in cogdl.