Git Product home page Git Product logo

meta-gnn's Introduction

Meta-GNN: On Few-shot Node Classification in Graph Meta-learning

Authors:

  • [Fan Zhou]
  • Chengtai Cao
  • [Kunpeng Zhang]
  • [Goce Trajcevski]
  • [Ting Zhong]
  • [Ji Geng]

Desccription of Meta-GNN

source_code for Meta-GNN (implement of Meta-GNN): Meta-GNN: On Few-shot Node Classification in Graph Meta-learning

Environment And Dependencies

PyTorch>=1.0.0
Install other dependencies: $ pip install -r requirement.txt

Dataset

We provide the citation network datasets under meta_gnn/data/.

Dataset Partition

We have shown the details of node partition in the paper.

Usage

For Meta-GNN:

$ cd meta_gnn/
$ python sgc.py 

For Few-shot:
(1)SGC:

$ cd sgc_fewshot/
$ python citation.py 

(2)GCN:

$ cd gcn_fewshot/
$ python citation.py 

(3)Deepwalk or Node2Vec:

$ cd graph_embedding_fewshot/
$ python deepwalk.py    //    $ python node2vec.py

(4)Graphsage

$ cd graphsage_fewshot/
$ python graphsage.py --dataset cora --gpu 0

Reference


Any comments and feedback are appreciated.

meta-gnn's People

Contributors

ai-dl-conference avatar chengtaicao avatar

Stargazers

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

Watchers

 avatar  avatar

meta-gnn's Issues

Meta-GNN Learner does not have the GCN layer code?

Thanks for open-sourcing!

I am learning your code and I couldn't find the code for GNN learner in the learner.py class in the meta GNN folder, it looks like it only uses the linear layer. I am wondering could you point it to me where the GCN layer is used for the base learner class?

Thank you!

Meta-data generate problem

According to your code, when generating a meta task, no matter what the n-way is, it will generate a 2-way data.

accuracy meaning

Dear Authors,
May I ask about accuracy from your codes
Step: 0 Meta_Training_Accuracy: [0.25833333 0.34166667 0.41666667 0.45 0.46666667 0.50833333
0.54166667 0.55833333 0.6 0.64166667 0.675 ]
why the length of list is 1+update_step and what is the meaning of each acc[i]?
how I evaluate the model is good or not from accuracy?
thanks,

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.