Coder Social home page Coder Social logo

bsaghafi / gcnmf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marblet/gcnmf

0.0 1.0 0.0 5.36 MB

PyTorch implementation of "Graph Convolutional Networks for Graphs Containing Missing Features"

Home Page: https://arxiv.org/abs/2007.04583

License: MIT License

Python 100.00%

gcnmf's Introduction

GCNmf

This is a PyTorch implementation of "Graph Convolutional Networks for Graphs Containing Missing Features", Future Generation Computer Systems, 2021.

Requirements

  • pytorch
  • scikit-learn
  • networkx
  • optuna
  • tqdm

Run codes

Node Classification

To run GCNmf for node classification, you can use run_node_cls.py with some options to specify dataset, missing type, missing rate, and hyper-parameters:

$ python run_node_cls.py --dataset citeseer --type struct --rate 0.1 --verbose

The following command shows the arguments of run_node_cls.py:

$ python run_node_cls.py --help

You can optimize hyper-parameters (dropout, learning rate, weight_decay) using tune_node_cls.py:

$ python tune_node_cls.py --dataset amaphoto --type struct --rate 0.1

Link Prediction

We take VGAE as the base model for link prediction and define a graph autoencoder, which employs GCNmf as an encoder. (For here, we call the link prediction model VGAEmf to distinguish the model for node classification.) To run the model for link prediction, you can use run_link_pred.py with some options:

$ python run_link_pred.py --dataset cora --type bias --rate 0.5 --verbose

You can optimize hyper-parameters (dropout, learning rate, weight_decay) using tune_link_pred.py:

$ python tune_link_pred.py --dataset citeseer --type struct --rate 0.1

Cite

@article{taguchi2021gcnmf,
  title = "Graph convolutional networks for graphs containing missing features",
  journal = "Future Generation Computer Systems",
  volume = "117",
  pages = "155 - 168",
  year = "2021",
  author = "Hibiki Taguchi and Xin Liu and Tsuyoshi Murata",
}

gcnmf's People

Contributors

marblet avatar

Watchers

James Cloos 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.