Giter VIP home page Giter VIP logo

Comments (2)

MikeB2019x avatar MikeB2019x commented on June 15, 2024 1

@eliorc Thank you for the reply. I had done all that you describe and read several papers before asking the question. However, everything I've read seems to assume one large mostly connected graph esp. a social network or citations. I see my case as substantively different. I'll keep looking. Thanks again for your time.

from node2vec.

eliorc avatar eliorc commented on June 15, 2024

It's hard to say, but I'll try my best to explain the parameters' impact on your result.
Essentially you decide how you want to embed information from your graph into the embedding space using the different hyperparameters.
I'd say num_walk is mostly for robustness, if your graphs are small enough I don't think you will gain from greater num_walk - this only defines the number of walks you will created from each node. In turn, these random walks are the input data for a skip-gram algorithm (just like Word2Vec). So you are just creating more data.

Walk length, jointly with window_size (which if you don't set, is set to 5 by gensim), q and p define how these walks are constructed. It will be too much for me to explain here, but if you want to understand this better I'd suggest to

  1. Learn about the Word2Vec algorithm, and the role of window size in the algorithm
  2. Learn about q and p (you can do so from looking at my PyData video in the README)

I think this will give you enough context to understand what you are looking for

from node2vec.

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.