Giter VIP home page Giter VIP logo

Comments (9)

hurun avatar hurun commented on May 17, 2024

if I want the node 2 vector ,how can i write code, is it that
model.wv.vectors[1]

from node2vec.

hurun avatar hurun commented on May 17, 2024

i have other question about the node.
If the graph structure is changing dynamically, how can you embed only the newly added nodes and not need to process the other nodes so as to save computation

from node2vec.

hurun avatar hurun commented on May 17, 2024

if I want the node 2 vector ,how can i write code, is it that
model.wv.vectors[1]

i do this, use model.wv.get_vector('2'), your code is amazing :)

from node2vec.

eliorc avatar eliorc commented on May 17, 2024

Hi, as stated in the docs, the Node2Vec.fit method returns an instance of gensim.models.Word2Vec, you can see in the documentation how to access vectors

But notice, it is stated in the README, all of your nodes will be strings after using Node2Vec.fit, so you should call '2' and not 2

from node2vec.

hurun avatar hurun commented on May 17, 2024

Thanks your repay, i can get the vector now with your helper.

I have a problem about dynamic graph .
that is the node in the graph will continue to add new nodes over time. Can I just do node2vec algorithm for the newly added node and its neighbor, and keep the other nodes unchanged

from node2vec.

eliorc avatar eliorc commented on May 17, 2024

Nope, node2vec algorithm cannot be incrementally updated...

from node2vec.

hurun avatar hurun commented on May 17, 2024

Thank you, i will try to read your code and maybe add this function to algorithm.

from node2vec.

eliorc avatar eliorc commented on May 17, 2024

Its not about the code, it's about the algorithm, the algorithm is not built for incremental learning

from node2vec.

hurun avatar hurun commented on May 17, 2024

Yes, your right.
I find a paper about incremental updated, maybe can combine into node2vec
here is paper: Inductive Representation Learning On Large Graphs
code:https://github.com/williamleif/GraphSAGE

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.