Giter VIP home page Giter VIP logo

Comments (3)

StephanieWyt avatar StephanieWyt commented on August 28, 2024

Thank you for your interest in our work!
Logits in this line is w^r_{ij}a^r[c_i||c_j] in Eq.4 in our paper. This equals to first multiply w^r with c (in_fts in our code), and then multiply in_fts with first half dimensions of a^r and last half dimensions of a^r (f_1 and f_2.transpose respectively), and add them together.

from rdgcn.

18360865802 avatar 18360865802 commented on August 28, 2024

Thank you for your interest in our work!
Logits in this line is w^r_{ij}a^r[c_i||c_j] in Eq.4 in our paper. This equals to first multiply w^r with c (in_fts in our code), and then multiply in_fts with first half dimensions of a^r and last half dimensions of a^r (f_1 and f_2.transpose respectively), and add them together.

I don't quite understand why conv1d is used.And the meaning using transpose.
I would be very grateful if the troubles can be answered.

from rdgcn.

StephanieWyt avatar StephanieWyt commented on August 28, 2024

Conv1d with filters=k and kernel_size=1 equals to multiply a matrix W with shape [d, k] (the input layer is of shape nd).
The transpose and the add with broadcast in line 140 produces a n
n matrix logits. The ith line and jth column of logits is the sum of the ith element in f_1 and the jth element in f_2, meaning the sum of w^ra^r_1c_i and w^ra^r_2c_j, where a^r=[a^r_1||a^r_2] and both a^r_1 and a^r_2 is half as long as a^r.

from rdgcn.

Related Issues (12)

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.