Giter VIP home page Giter VIP logo

Comments (6)

csiesheep avatar csiesheep commented on July 1, 2024

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.

zuozijiZHOULI avatar zuozijiZHOULI commented on July 1, 2024

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.

csiesheep avatar csiesheep commented on July 1, 2024

Hi, I am sorry that I do not quite understand your question. Could you describe more? Thanks!

from hin2vec.

zuozijiZHOULI avatar zuozijiZHOULI commented on July 1, 2024

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.

csiesheep avatar csiesheep commented on July 1, 2024

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.

zuozijiZHOULI avatar zuozijiZHOULI commented on July 1, 2024

Thank you for your serious reply. I have understood.Wish you a happy life!

from hin2vec.

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.