GithubHelp home page GithubHelp logo

Question about the sampling code about ladies HOT 2 OPEN

acbull avatar acbull commented on August 26, 2024
Question about the sampling code

from ladies.

Comments (2)

acbull avatar acbull commented on August 26, 2024

Sorry which line are you referring to?

We don't assume the lowest layer contains all the nodes, as we are conducting layer-wise sampling. For each GNN layer, the source nodes and target nodes could be different. (which is stored as a specific adjacency matrix in https://github.com/acbull/LADIES/blob/303036e8649eaf269eb5adb87f6b57c168c39276/pytorch_ladies.py#L117-L120)

What you refer to is more like graph-wise sampling, by sampling a subgraph and then apply GNN on the whole sampled graph, which is different from our setting.

from ladies.

chocolate9624 avatar chocolate9624 commented on August 26, 2024

Thanks for your quick response!

https://github.com/acbull/LADIES/blob/c10b5260ebcedf4efa7a175ec60ce6229a2a444e/pytorch_ladies.py#L157
This line returns the "previous_nodes". The 'previous_nodes' is the nodes from the lowest layer.

https://github.com/acbull/LADIES/blob/c10b5260ebcedf4efa7a175ec60ce6229a2a444e/pytorch_ladies.py#L241-L246
In these lines, the 'previous_nodes' is renamed as 'input_nodes'. And these nodes ('input_nodes') are used to slice node features for the sampled subgraph.

I think the 'previous_nodes' from the lowest layer may not contain all the nodes in the sampled subgraph. The node features for some of the nodes are not used.

Thanks!

from ladies.

Related Issues (11)

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.