Giter Club home page Giter Club logo

Comments (2)

RexYing avatar RexYing commented on July 20, 2024

Hi,

Yes you are right in that the negative sampler could possibly sample nearby nodes.
However, in the context of large graphs, as is the main focus of the paper, it is highly unlikely that the samples are neighbors of the node which we compute representations. In practice we do not find this to be a big issue. Of course if in some cases (e.g. when there are nodes with extremely large degree), you might want to modify the sampler such that neighboring nodes (or even nodes 2 hops away) are not sampled.

from graphsage.

ghostHBL avatar ghostHBL commented on July 20, 2024

In my large graph data, I also found that it will take a long long long time to random sample the neg_samples if need to make sure they are not the neighbors. So that, it's a nice choice to random sample nodes as the neg_samples without making sure they are not the neighbors since they are unlikely to be neighbors.
I will close this issue.
Thanks.

from graphsage.

Related Issues (20)

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.