Comments (5)
@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.
@Sean0719 If you use python version, just with
--weighted
.
Such aspython 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.
Okay, thank you very much.
from node2vec.
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.
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)
- Where can i find the code of link prediction task mentioned in the paper?
- [node2vec_spark]Could somebody explain what this code is doing? HOT 1
- Saving corpus in text file
- Is it possible to run node2vec on multi graphs ? HOT 3
- comparison of GCN and node2vec
- For large weighted graph the preprocess_transition_probs is very slow
- Can node2vec be used in Chinese? A data format similar to my following? HOT 1
- ./node2vec: No such file or directory
- Error in "karate.edgelist"
- Qusetion:How to input weight graph?
- how to use node2vec in community detection
- ModuleNotFoundError: No module named 'node2vec', even after 'pip install node2vec'
- Confusion with BFS and DFS
- im recieving this error HOT 1
- Can we use any technique other than word2vec in the implementation of node2vec for finding embeddings?
- Errors trying to run under Python3 HOT 2
- Nothing happened then after running node2vec HOT 2
- What is `alias_nodes` and `alias_edges` for? HOT 1
- Can I change the initial state of the embeddings?
- org.apache.parquet.schema.Types$GroupBuilder cannot be cast to org.apache.parquet.schema.Types$BaseGroupBuilder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node2vec.