Comments (6)
Hi, sorry for the late reply and thanks for the asking.
Yes, hin2vec works on directed networks if you define two direction edges for nodes.
E.g., Amy(User) ---> Bob(User). "--->" means following
In edge list file:
Amy User Bob User U->U #U->U means following
...
Bob User Amy User U<-U #U<-U means being followed
from hin2vec.
Thank you for your help ! I have another question that I don't quite understand, why is it that when U-U is represented as a vector,U-U,U-U is represented as a vector?
from hin2vec.
Hi, I am sorry that I do not quite understand your question. Could you describe more? Thanks!
from hin2vec.
Hi,thank you for your reply.I am so sorry,My English is not good, I will try my best to show my problem. I've run the code of HIN2VEC, but I don't really understand about metapath2vec. The "u-u" relationship is already represented as a vector, why would you want to represent "u-u, u-u" as a vector?I'm confused about what "u-u, u-u" stands for.Why is the representation of relationships not the representation of a single relationship, but rather the representation of multiple relationships after iteration?Could you please tell me in detail or provide me with more materials about the experiment? If you can help me, I will be very grateful.
from hin2vec.
Hi! Thanks for elaborating. It is because that each metapath has its own semantic meaning. In the example you mentioned, "U-U" means direct friendship and "U-U,U-U" ("U-U-U for short") means co-friendship. There are more relationships that can be modeled as multiple-hop metapaths, such as "Author-Paper-Author" means co-authorship and "Author-Paper-Conference-Paper-Author" means two authors have publications in the same conference. Only consider one hop relationships between nodes is not enough. My experiments show that considering 3-hop or 4-hop metapaths really help the performance of applications.
from hin2vec.
Thank you for your serious reply. I have understood.Wish you a happy life!
from hin2vec.
Related Issues (20)
- main.py and main_py.py are equivalent, right? HOT 2
- Modify code in main_py.py HOT 1
- if I have UBCaB meta_path, What should I change to get embedding vector for you code? HOT 1
- about dataset? HOT 3
- How to calculate the gradient of metapath embedding? HOT 2
- segmentation fault (core dumped) on Ubuntu HOT 3
- multiple processes Error in main_py.py HOT 1
- Index out of range HOT 2
- About output?
- A question about use tensorflow to implement hin2vec algorithm
- The main program is not generating vectors for all the nodes HOT 2
- Could you add a license?
- input format
- For these node classifications, why eliminate from HINs, groups in Blogcatalog, categories in Yelp, venues in DBLP and patent classes in U.S. Patents? when we learn the representation of nodes.
- use hin2vec to link predicition
- Multiple metapaths
- 'model_c' 不是内部或外部命令,也不是可运行的程序 HOT 1
- In a trained node_vector file, why does the dim of the last node vector get shorter?
- Key Error when test with a toy network HOT 2
- Seek the Link-prediction implementation source code HOT 3
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 hin2vec.