Skip to content

wanjunhong0/Project-Prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project-Prometheus

Classic GNN methods (Pytorch Implementation)

Package Requirements

torch
torch_geometric
torchmetrics
scipy
numpy

Universal Parameters

  • Data Paramters
--data_path     str     '../data/'   Input data path
--dataset       str     'Cora'       Choose a dataset from {Cora, CiteSeer, PubMed}
--split         str     'full'       The type of dataset split {public, full, random}
  • Training Parameters
--seed          int      123         Random seed 
--epoch         int      100         Number of epochs to train
--lr            float    0.01        Initial learning rate
--weight_decay  float    5e-4        Weight decay (L2 norm on parameters)
--layer/--k     int/int  2/10        Number of layers/k-hop propagations
--hidden        int      64          Number of hidden units
--dropout       float    0.5         Dropout rate

NOTE: --layer indicates numbers of (Graph) Neural Networks layers which include parameters; while --k indicates k-hop propagations which do not have parameters

Model Parameters

--sample        int      10          Number of neighbors to sample (0 means no sampling)
--batch_size    int      128         Number of nodes per batch
---aggregator   str      mean        Choose a aggregator type from {mean, gcn, meanpooling}
--batch_size    int      128         Number of nodes per batch
--head          int      8           Number of head attentions
--batch_size    int      128         Number of nodes per batch
--sample        int      256         Number of neighbors to sample per layer
--mode          str      cat         Mode for layer fusion {cat, max}
--rate          float    0.8         The percent of the preserve edges. If it equals 1, no sampling is done on adj matrix
--scale         float    1.0         Row-normalization scale
--mode          str      PN          Mode for PairNorm {None, PN, PN-SI, PN-SCS}
--alpha         float    0.1         Alpha hyperparameters
--theta         float    0.5         Theta hyperparameters
--alpha         float    0.1         Alpha hyperparameters
--alpha         float    0.1         Alpha hyperparameters
--eps           float    0.3         Eps hyperparameters

Examples

cd GCN
python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages