Git Product home page Git Product logo

egat-refine's Introduction

CodeAppendix

Dependencies

  • pytorch 1.5.0
  • pytorch-lightning 0.7.3
  • torch-geometric 1.4.3
  • numpy 1.18.1
  • scipy 1.5.1
  • wandb 0.9.4 (please run wandb off to disable the sync to wandb server)

File Structure

  • data: Directory for dataset.
  • model:
    • node.py: The node module of EGAT.
    • edge.py: The edge module of EGAT.
    • mgcn.py: The edge and node modules of MGCN, including the EGAT_MGCN (AttentionVertexModule)
    • nnconv.py: The node module of NNConv, including the EGAT_NNConv (AttentionNNConv)
    • net.py: The network structure of EGAT, for both AMLSim (AMLSimNet) and citation networks (Cora, Citeseer and PubMed) (CitationNet). The structure of CitationNet is hard coded.
  • trainer: The training process (see: pytorch-lightning) of AMLSim and citation networks.
  • transforms: The transformers of dataset.
  • dataset.py: Some of the preprocessing of AMLSim and all the preprocessing of citation networks.
  • main.py: The entry file.
  • config.yml: Hyperparameter config file.

Usage

Dataset Prepare

Please copy all dataset to data directory. (available at this url)

Hyperparameters

You can control the hyperparameter in config.yml. where the meaning of each hyperparameter is commented .

Train

Run python main.py to train the model. The results are reported in the terminal.

egat-refine's People

Contributors

dhpo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.