Giter Club home page Giter Club logo

Comments (1)

ZimpleX avatar ZimpleX commented on July 22, 2024

For this you need to prepare separate adj files, adj_train that defines the connectivity among training nodes only and adj_full that defines connectivity among nodes seen or unseen during training. adj_full will be used during the validation & test phases.

For example, on the Flickr graph, we perform inductive training (I think it aligns with your use case). In the config yaml you can specify that the training is inductive:

https://github.com/facebookresearch/shaDow_GNN/blob/main/config_train/flickr/vanilla/sage_3_ppr.yml#L3

Then when loading the graph for training, the model will separately load adj_train and adj_full, and information of adj_full is unseen during training:

https://github.com/facebookresearch/shaDow_GNN/blob/main/config_train/flickr/vanilla/sage_3_ppr.yml#L3

Here is an example of the data format conversion script (GraphSAINT format --> shaDow format): https://github.com/facebookresearch/shaDow_GNN/blob/main/para_graph_sampler/graph_engine/frontend/loader.py#L43

In this section, we defined all the data files required to train shaDow-GNN (you don't need to prepare those optional files, as they will be auto-generated):

https://github.com/facebookresearch/shaDow_GNN#general-shadow-format

Please let me know of any additional questions. Thanks.

from shadow_gnn.

Related Issues (8)

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.