GithubHelp home page GithubHelp logo

zjzijielu / gnn-positional-structural-node-features Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 1.0 8 KB

Official repository of "On Positional and Structural Node Features for Graph Neural Networks on Non-attributed Graphs", CIKM 2022

gnn-positional-structural-node-features's Introduction

On Positional and Structural Node Features for Graph Neural Networks on Non-attributed Graphs (CIKM 2022)

Summary

This repository is the official implementation of the paper. If you would like to use/modify the code or reproduce the experiment results, please remember to cite this paper:

Hejie Cui, Zijie Lu, Pan Li, Carl Yang: On Positional and Structural Node Features for Graph Neural Networks on Non-attributed Graphs. Proceedings of the International Conference on Information and Knowledge Management (CIKM) 2022

System and software config

The experiments are run locally on Ubuntu 20.04, with NVCC 10.2 and Python 3.8.5. The Python module versions can be found in requirements.txt.

Requirements

To run experiments, first set up virtualenv. After activating the virtul environment, run

pip3 install -r requirements.txt

Positional and structural node classification

RUN

cd graphsage-simple
bash train_nodes.sh

You can specify the initialization method, dataset, epoch, feature dimension and learning rate in train_nodes.sh. The results can be found in results folder.

Graph classification

Refer to gnn_comparison/experiment.sh for example runbook.

Deepwalk

Deepwalk is one of the initialization methods that we explore in this project. To generate deepwalk features, refer to https://github.com/phanein/deepwalk.

Make sure to include dataset directory in the --input and --ouput flag value, and set the --format.

gnn-positional-structural-node-features's People

Contributors

zjzijielu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hennyjie

gnn-positional-structural-node-features's Issues

about random and one-hot initialization

I saw that in your model.py code, for the one-hot initializer you set the input feature embedding to be learnable, but for random normal initializer you set require_grad to false. It seems for the one-hot setting the feature should be not learnable but for the random one it should be trainable. Do I understand it correctly?

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.