Giter Club home page Giter Club logo

Comments (7)

zheng-da avatar zheng-da commented on August 22, 2024

For DGL, an undirected graph is stored as a bi-directional graph. If there is an edge from A to B, there will be an edge from B to A. In DGL-KE, we use DGL to store DGL to store knowledge graphs. If your graph is undirected, I think you can store it as a bi-directional graph. You can store a triplet (A, r, B) and (B, r', A) for every edge. I think you can create a separate relation for the reverse edge.

from dgl-ke.

cfangplus avatar cfangplus commented on August 22, 2024

The reason why to change the undirected graph to stored as bi-directional graph is that the graph now contains two types of relation, concretely, inverse relation, right?

from dgl-ke.

zheng-da avatar zheng-da commented on August 22, 2024

I think so. But it is also up to the model. Some of the KGE models, such as DistMult, are symmetric. For the symmetric models, I guess one direction is enough.

from dgl-ke.

cfangplus avatar cfangplus commented on August 22, 2024

We know that DGL-KE have provided knowledge graph embedding algorithm like TransE and many others.
I see that PyG and some other similar system like GraphVite both have implements of random walk node embedding algorithm like Node2Vec, DeepWalk, LINE, etc, does DLG-KE plan to develop this feature?

from dgl-ke.

zheng-da avatar zheng-da commented on August 22, 2024

Yes, we plan to implement them. We have a prototype of DeepWalk and Metapath2vec, but haven't fully optimized them yet.

from dgl-ke.

cfangplus avatar cfangplus commented on August 22, 2024

That's great.
Now we have two choices of embedding models, one is node embedding like DeepWalk, Node2Vec, while another knowledage graph embedding like TransE, DistMult.
As the first question of this issue we talked, actually, KGE models could be used for homogeneous graph where DeepWalk, Node2Vec is applied. But this does not mean that KGE models could replace those node embedding models, right? Otherwise, there is no need to develop and optimize DeepWalk.
I still don't know the performance differences between the two, do you ever consider this problem. As now u developed the two models, please provide some advice on how to choose the two while user of DGL-KE tried to do node embedding with homogeneous graph, thx.

from dgl-ke.

zheng-da avatar zheng-da commented on August 22, 2024

This is an interesting question. We never compare the two kinds of algorithms. KGE is supervised by link prediction while DeepWalk is random walk sequence. When we apply KGE on a homogeneous graph, it should be similar to simple matrix factorization. DeepWalk should outperform matrix factorization, such as SVD?

from dgl-ke.

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.