Giter VIP home page Giter VIP logo

Comments (7)

tkipf avatar tkipf commented on July 17, 2024

from pygcn.

zhiqiangzhongddu avatar zhiqiangzhongddu commented on July 17, 2024

Excuse me that I'm training in a supervised way. It seems that GCN could only extract embeddings with the same length as num-class if I want to use the output of the last GCN-layer? Not available for a random defined range.

from pygcn.

tkipf avatar tkipf commented on July 17, 2024

from pygcn.

zhiqiangzhongddu avatar zhiqiangzhongddu commented on July 17, 2024

It's clear now. Thanks.

from pygcn.

zfchen95 avatar zfchen95 commented on July 17, 2024

I used the intermediate result H, but it seems the embeddings cannot be used for link prediction task, i.e. there is little difference between the dot product of the nodes with and without connection. It is understood because gcn is originally used for node classification instead of link prediction. Does anyone have an idea how to apply the embeddings for link predictions?

from pygcn.

tkipf avatar tkipf commented on July 17, 2024

from pygcn.

IreneZihuiLi avatar IreneZihuiLi commented on July 17, 2024

The dot product will not be a good scoring function on embeddings trained solely for classification. You can either use the embeddings from github.com/tkipf/gae which are optimized for dot-product scoring (link prediction), or you train a bilinear scoring function on top of the fixed embeddings (taken from the supervised GCN model). A bilinear scoring function looks like this: \sigma(h^TWh) where h are embeddings for nodes, W is a matrix that you train via gradient descent on some training data for link prediction and sigma is a sigmoid activation function.

On Sat 1. Dec 2018 at 22:55 Zhenfeng @.***> wrote: I used the intermediate result H, but it seems the embeddings cannot be used for link prediction task, i.e. there is little difference between the dot product of the nodes with and without connection. It is understood because gcn is originally used for node classification instead of link prediction. Does anyone have an idea how to apply the embeddings for link predictions? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#26 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AHAcYPEud18_Br-D0RtXkuAVztNVyZKKks5u008vgaJpZM4YNiO4 .

Can you please make it clear that how to adapt W matrix for link prediction tasks?
To my understanding, we need the adjacency matrix of the last layer to check the linkings. But in the code 'adj' will not change.

Thanks.

from pygcn.

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.