Skip to content
/ DGI Public
forked from PetarV-/DGI

Add data preprocessing script in this code.

License

Notifications You must be signed in to change notification settings

zanghyu/DGI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DGI

Add data preprocessing script in this code.

Deep Graph Infomax (Veličković et al., ICLR 2019): https://arxiv.org/abs/1809.10341

Overview

Here we provide an implementation of Deep Graph Infomax (DGI) in PyTorch, along with a minimal execution example (on the Cora dataset). The repository is organised as follows:

  • data/ contains the necessary dataset files for Cora;
  • models/ contains the implementation of the DGI pipeline (dgi.py) and our logistic regressor (logreg.py);
  • layers/ contains the implementation of a GCN layer (gcn.py), the averaging readout (readout.py), and the bilinear discriminator (discriminator.py);
  • utils/ contains the necessary processing subroutines (process.py).

Finally, execute.py puts all of the above together and may be used to execute a full training run on Cora.

Modified part

This project add preprocess.py, this file include preprocessing works of the cora dataset. In data folder, we move the data used in DGI to cora_dgi folder, and add the original cora dataset into the folder named cora_ori. Besides, we also put the dataset used in plantoid in cora_nonorm folder.

The preprocessing can be done through python preprocess.py, and the format which DGI used can be made.

** The script can make the original cora data to the formatted data used in plantoid, but these data still are not totally equal to the data used in DGI, so there still need some work to do, maybe normalizing etc. **

Reference

If you make advantage of DGI in your research, please cite the following in your manuscript:

@inproceedings{
velickovic2018deep,
title="{Deep Graph Infomax}",
author={Petar Veli{\v{c}}kovi{\'{c}} and William Fedus and William L. Hamilton and Pietro Li{\`{o}} and Yoshua Bengio and R Devon Hjelm},
booktitle={International Conference on Learning Representations},
year={2019},
url={https://openreview.net/forum?id=rklz9iAcKQ},
}

License

MIT

About

Add data preprocessing script in this code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%