Skip to content

pytorch implementation of Graph Attention Networks

License

Notifications You must be signed in to change notification settings

marblet/gat-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gat-pytorch

This is the pytorch inplementation of Graph Attention Networks.

Petar Veličković et al.Graph Attention Networks

Usage

$ python main.py

Explanation of main.py

from gat import GAT
from spgat import SPGAT
from train import run
from data import load_data

if __name__=='__main__':
    # load a data according to input
    data = load_data('cora')

    # create GAT model
    # You can use the sparse version of GAT, which reduces computational time and memory consumption.
    model = SPGAT(data)
    # You can also use the dense version of GAT
    # model = GAT(data)

    # run the model niter times
    run(data, model, lr=0.005, weight_decay=5e-4, niter=10)

About

pytorch implementation of Graph Attention Networks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages