facebookresearch / hgnn

Hyperbolic Graph Neural Networks
Other
227 stars 52 forks source link

Hyperbolic Graph Neural Networks

Requirements

A recipe about installing the requirements is provided in install.sh.

Data Preprocess

For the Ethereum dataset, go to data/ethereum and run download_ethereum.sh

For the node classification dataset, go to data/node and run download_node.sh

For QM8, QM9 and ZINC, go to data/qm8, data/qm9 and data/zinc, respectively and run python get_data.py

For the synthetic dataset, go to data/synthetic and run python generate_graphs.py

For TU Dortmund datasets, go to data/tu and run python data_preprocess.py {REDDIT-MULTI-12K, PROTEINS_full, ENZYMES, DD, COLLAB}

Run Experiments

The code can be run on SLURM and on multiple GPUs. To run on multi GPUs, use

python -m torch.distributed.launch --nproc_per_node=NUM_GPU main.py --task {qm8, qm9, zinc, ethereum, node_classification, synthetic, dd, enzymes, proteins, reddit, collab}

Inputs of Riemannian GNN

Here we introduce the inputs of Riemannian GNN:

Directory

Hyperparameters

Some notable hyperparameters are listed here.

License

HGNN is licensed under Creative Commons-Non Commercial 4.0. See the LICENSE file for details.