← 开源
seongjunyun

Graph_Transformer_Networks

Graph Transformer Networks (Authors' PyTorch implementation for the NeurIPS 19 paper)

Model DevelopmentArchitectureJupyter Notebook
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
1.08k
Star
187
Fork
+0
本周
1
贡献者
创建于 2019-09-09 · 更新于 2026-09-19 · 今日第 11709 名
主要开发者
seongjunyun

seongjunyun/Graph_Transformer_Networks 排名第 11,709,有 1,081 个星标。

同类别比较

seongjunyun/Graph_Transformer_Networks 排名第 11,709,此处有 8 个同类条目;neuronika/neuronika 排名第 11,708。

同类别比较
名称排名指标
datumbox/datumbox-framework11,698
语言:
Java
星标数:
1,082
分叉数:
278
简介:
Datumbox is an open-source Machine Learning framework written in Java which allows the rapid development of Machine Learning and Statistical applications.
mlr-org/mlr311,702
语言:
R
星标数:
1,082
分叉数:
98
简介:
mlr3: Machine Learning in R - next generation
locuslab/mpc.pytorch11,706
语言:
Python
星标数:
1,081
分叉数:
166
简介:
A fast and differentiable model predictive control (MPC) solver for PyTorch.
neuronika/neuronika11,708
语言:
Rust
星标数:
1,081
分叉数:
56
简介:
Tensors and dynamic neural networks in pure Rust.
orobix/Prototypical-Networks-for-Few-shot-Learning-PyTorch11,718
语言:
Python
星标数:
1,079
分叉数:
217
简介:
Implementation of Prototypical Networks for Few Shot Learning (https://arxiv.org/abs/1703.05175) in Pytorch
pytorch/torchdynamo11,724
语言:
Python
星标数:
1,078
分叉数:
128
简介:
A Python-level JIT compiler designed to make unmodified PyTorch programs faster.
rhiever/datacleaner11,725
语言:
Python
星标数:
1,078
分叉数:
204
简介:
A Python tool that automatically cleans data sets and readies them for analysis.
floodsung/LearningToCompare_FSL11,734
语言:
Python
星标数:
1,076
分叉数:
263
简介:
PyTorch code for CVPR 2018 paper: Learning to Compare: Relation Network for Few-Shot Learning (Few-Shot Learning part)
关键参数与规格
关键参数与规格
参数值
语言Jupyter Notebook
类别Model Development
子类别Architecture
星标数1,081
分叉数187
贡献者1
创建日期2019-09-09
更新日期2026-09-19
1 天星标数0
7 天星标数0
排名11,709
上次排名11,638
排名变化-71
7 天星标排名13,110
上次 7 天星标排名13,131
7 天星标排名变化21
总星标排名10,507
上次总星标排名10,494
总星标排名变化-13
国家South Korea
README 摘录

Graph Transformer Networks This repository is the implementation of Graph Transformer Networks(GTN) and Fast Graph Transformer Networks with Non-local Operations (FastGTN). Seongjun Yun, Minbyul Jeong, Raehyun Kim, Jaewoo Kang, Hyunwoo J. Kim, Graph Transformer Networks, In Advances in Neural Information Processing Systems (NeurIPS 2019). Seongjun Yun, Minbyul Jeong, Sungdong Yoo, Seunghun Lee, Sean S, Yi, Raehyun Kim, Jaewoo Kang, Hyunwoo J. Kim, Graph Transformer Networks: Learning meta-path graphs to improve GNNs, Neural Networks 2022. Updates \[**Sep 19

, 2022**\] We released the source code of our FastGTN with non-local operations), which improves GTN's scalability (Fast) and performance (non-local operations). \[**Sep 19, 2022**\] We updated the source code of our GTNs to address the issue where the latest version of torch_geometric removed the backward() of the multiplication of sparse matrices (spspmm). To be specific, we implemented the multiplication of sparse matrices using pytorch. Installation Install pytorch Install torch_geometric To run the previous version of GTN

(in prev_GTN folder), ** The latest version of torch_geometric removed the backward() of the multiplication of sparse matrices (spspmm), so to solve the problem, we uploaded the old version of torch-sparse with backward() on pip under the name torch-sparse-old. Data Preprocessing We used datasets from Heterogeneous Graph Attention Networks (Xiao Wang et al. ) and uploaded the preprocessing code of acm data as an example. Running the code *** To check the best performance of GTN in DBLP

and ACM datasets, we recommend running the GTN in OpenHGNN implemented with the DGL library. sparsemm requires more memory than the existing torch_sparse. spspmm, it was not possible to run the best case with num_layer > 1 in DBLP and ACM datasets. Download datasets (DBLP, ACM, IMDB) from this link and extract data. DBLP ACM IMDB Citation If this work is useful for your research, please cite our GTN and FastGTN:

常见问题

记录了多少星标和分叉?

seongjunyun/Graph_Transformer_Networks 有 1,081 个星标和 187 个分叉。

仓库排名是多少?

seongjunyun/Graph_Transformer_Networks 排名第 11,709。

记录的语言和类别是什么?

seongjunyun/Graph_Transformer_Networks 有 1,081 个星标,语言为 Jupyter Notebook,类别为 Model Development。

哪个仓库排名最接近?

seongjunyun/Graph_Transformer_Networks 与 neuronika/neuronika 比较,后者排名第 11,708,有 1,081 个星标。

README

Graph Transformer Networks

This repository is the implementation of Graph Transformer Networks(GTN) and Fast Graph Transformer Networks with Non-local Operations (FastGTN).

Seongjun Yun, Minbyul Jeong, Raehyun Kim, Jaewoo Kang, Hyunwoo J. Kim, Graph Transformer Networks, In Advances in Neural Information Processing Systems (NeurIPS 2019).

Seongjun Yun, Minbyul Jeong, Sungdong Yoo, Seunghun Lee, Sean S, Yi, Raehyun Kim, Jaewoo Kang, Hyunwoo J. Kim, Graph Transformer Networks: Learning meta-path graphs to improve GNNs, Neural Networks 2022.

Updates

  • [Sep 19, 2022] We released the source code of our FastGTN with non-local operations, which improves GTN's scalability (Fast) and performance (non-local operations).
  • [Sep 19, 2022] We updated the source code of our GTNs to address the issue where the latest version of torch_geometric removed the backward() of the multiplication of sparse matrices (spspmm). To be specific, we implemented the multiplication of sparse matrices using pytorch.sparse.mm that includes backward() operation.

Installation

Install pytorch

Install torch_geometric

To run the previous version of GTN (in prev_GTN folder),

$ pip install torch-sparse-old

** The latest version of torch_geometric removed the backward() of the multiplication of sparse matrices (spspmm), so to solve the problem, we uploaded the old version of torch-sparse with backward() on pip under the name torch-sparse-old.

Data Preprocessing

We used datasets from Heterogeneous Graph Attention Networks (Xiao Wang et al.) and uploaded the preprocessing code of acm data as an example.

Running the code

*** To check the best performance of GTN in DBLP and ACM datasets, we recommend running the GTN in OpenHGNN implemented with the DGL library. Since the newly used torch.sparsemm requires more memory than the existing torch_sparse.spspmm, it was not possible to run the best case with num_layer > 1 in DBLP and ACM datasets.

$ mkdir data
$ cd data

Download datasets (DBLP, ACM, IMDB) from this link and extract data.zip into data folder.

$ cd ..
  • DBLP

    • GTN
    $ python main.py --dataset DBLP --model GTN --num_layers 1 --epoch 50 --lr 0.02 --num_channels 2
    
    • FastGTN
    1. w/ non-local operations ( >24 GB)
    $ python main.py --dataset DBLP --model FastGTN --num_layers 4 --epoch 100 --lr 0.02 --channel_agg mean --num_channels 2 --non_local_weight 0 --K 3   --non_local
    
    1. w/o non-local operations
    $ python main.py --dataset DBLP --model FastGTN --num_layers 4 --epoch 100 --lr 0.02 --channel_agg mean --num_channels 2
    
  • ACM

    • GTN
    $ python main_gpu.py --dataset ACM --model GTN --num_layers 1 --epoch 100 --lr 0.02 --num_channels 2
    
    • FastGTN
    1. w/ non-local operations
    $ python main_gpu.py --dataset ACM --model FastGTN --num_layers 3 --epoch 200 --lr 0.05 --channel_agg mean --num_channels 2 --non_local_weight -1 --K 1 --non_local
    
    1. w/o non-local operations
    $ python main_gpu.py --dataset ACM --model FastGTN --num_layers 3 --epoch 200 --lr 0.05 --channel_agg mean --num_channels 2
    
  • IMDB

    • GTN
    $ python main.py --dataset IMDB --model GTN --num_layers 2 --epoch 50 --lr 0.02 --num_channels 2
    
    • FastGTN
    1. w/ non-local operations
    $ python main.py --dataset IMDB --model FastGTN --num_layers 3 --epoch 50 --lr 0.02 --channel_agg mean --num_channels 2 --non_local_weight -2 --K 2 --non_local
    
    1. w/o non-local operations
    $ python main.py --dataset IMDB --model FastGTN --num_layers 3 --epoch 50 --lr 0.02 --channel_agg mean --num_channels 2
    

Citation

If this work is useful for your research, please cite our GTN and FastGTN:

@inproceedings{yun2019GTN,
  title={Graph Transformer Networks},
  author={Yun, Seongjun and Jeong, Minbyul and Kim, Raehyun and Kang, Jaewoo and Kim, Hyunwoo J},
  booktitle={Advances in Neural Information Processing Systems},
  pages={11960--11970},
  year={2019}
}
@article{yun2022FastGTN,
title = {Graph Transformer Networks: Learning meta-path graphs to improve GNNs},
journal = {Neural Networks},
volume = {153},
pages = {104-119},
year = {2022},
}
排名相邻
同类项目