Code Monkey home page Code Monkey logo

Comments (5)

DozenCoder avatar DozenCoder commented on June 30, 2024 4

@Sean0719 If you use python version, just with --weighted.
Such as python node2vec/src/main.py --input xx.edgelist --output xx.embeddings --dimensions 100 --walk-length 100 --num-walks 50 --window-size 30 --p 0.25 --q 4 --iter 5 --weighted
and your edgelist file should like:

780 725 1
266 351 2
285 132 1
328 748 7
275 487 1
259 938 2
.....

from node2vec.

sonia0028 avatar sonia0028 commented on June 30, 2024 1

@Sean0719 If you use python version, just with --weighted.
Such as python node2vec/src/main.py --input xx.edgelist --output xx.embeddings --dimensions 100 --walk-length 100 --num-walks 50 --window-size 30 --p 0.25 --q 4 --iter 5 --weighted
and your edgelist file should like:

780 725 1
266 351 2
285 132 1
328 748 7
275 487 1
259 938 2
.....

Hello I am trying to run node2 vec how can I use this weight

from node2vec.

Sean0719 avatar Sean0719 commented on June 30, 2024

Okay, thank you very much.

from node2vec.

Sean0719 avatar Sean0719 commented on June 30, 2024

Hi,
One more question, for the weighted node, the weight is used to compute the probability between two node? Thank you very much.

from node2vec.

DozenCoder avatar DozenCoder commented on June 30, 2024

Hi,
One more question, for the weighted node, the weight is used to compute the probability between two node? Thank you very much.

By reading the source code:https://github.com/aditya-grover/node2vec/blob/master/src/node2vec.py#L66, https://github.com/aditya-grover/node2vec/blob/master/src/node2vec.py#L85 , the weight should be used to compute the probability between two node.

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.