Code Monkey home page Code Monkey logo

improving-gnns-exploiting-information-of-graphs's Introduction

EXPLOITING STRUCTURAL INFORMATION FOR IMPROVING HETEROGENEOUS GRAPH NEURAL NETWORKS

This GitHub repository contains the code for the implementation and evaluation of the Heterogeneous Graph Transformer (HGT) architecture proposed in the master thesis titled "Improving Heterogeneous Graph Transformer Architecture for Processing Heterogeneous Graphs".

Install all required library:

 $ pip install -r requirements.txt

Datasets

Preprocessed ACM can be found in: https://pan.baidu.com/s/1V2iOikRqHPtVvaANdkzROw key:50k2 or https://github.com/Jhy1993/HAN/tree/master/data/acm

Preprocessed DBLP can be found in: https://pan.baidu.com/s/1Qr2e97MofXsBhUvQqgJqDg key:6b3h or https://github.com/Jhy1993/HAN/tree/master/data/DBLP_four_area

Preprocessed IMDB can be found in: https://pan.baidu.com/s/199LoAr5WmL3wgx66j-qwaw key: qkec or https://raw.githubusercontent.com/Jhy1993/HAN/master/data/imdb/movie_metadata.csv

Overview

The HGT architecture is implemented using the code provided by the authors in their official paper https://arxiv.org/pdf/2003.01332.pdf The most important files in this projects are as follow:

  • Model

    • model_base.iypnb --> Simple HGT implementation
    • model_com_embedding.ipynb --> HGT with integration of community embedding as trainable vector
  • Data

    • data.ipynb --> Datasets download and graph building
    • ogb-3.ipynb --> ogb dataset download and graph building
  • Experiments

    • train_ComEmb.ipynb --> Model training with comuunities embeddings
    • train_Optuna_FastRP.ipynb --> Model training and tuning FastRP hyperparameters via Optuna
    • train_base.ipynb --> Base Model training
    • train_base_optuna.ipynb --> Model training and tuning HGT hyperparameters via Optuna
  • Features Engineering

    • communities.ipynb --> Add Features from communities
    • node_embedding.ipynb --> Add features from node embedding
    • utils.ipynb --> Add fetaures from properties and stucture of graph
  • FastRP

    • fastRP_impl.ipynb --> Implementaion of FastRP algorithm

Results

image

improving-gnns-exploiting-information-of-graphs's People

Contributors

gabrielecolapelle avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.