Coder Social home page Coder Social logo

graphembeddings's Introduction

GraphEmbeddings

This repo compares different techniques of using GNN models to train node embeddings of a graph without node/edge attributes. Here we try a few options of adding initial node embeddings for GNN models:

  • Method 1: compute eigenvectors of the graph with SVD and use the eigenvectors as the positional node embeddings of the graph,
  • Method 2: put trainable embeddings of the nodes and initialize the embeddings with normal distribution,
  • Method 3: put trainable embeddings of the nodes and initialize the embeddings with eigenvectors.

We try these options with both GraphSage and GAT models. Below shows the model accuracy on OGBN-products graph.

Method Val/Test Acc
MLP on eigenvectors 0.6229/0.3987
GraphSage + original node features 0.9201/0.7832
GraphSage + trainable embeddings 0.9133/0.7207
GraphSage + eigenvectors 0.8650/0.7015
GraphSage + trainable embeddings init with eigenvectors 0.9148/0.7898
GraphSage + fine-tune embeddings init with eigenvectors 0.9164/0.7900
GAT + trainable embeddings 0.9205/0.7622
GAT + eigenvectors 0.8657/0.7326
GAT + trainable embeddings init with eigenvectors 0.9177/0.8028
GAT + fine-tune embeddings init with eigenvectors 0.9158/0.8001

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.