Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-square adj matrix #24

Closed
ahyunSeo opened this issue Oct 17, 2018 · 3 comments
Closed

non-square adj matrix #24

ahyunSeo opened this issue Oct 17, 2018 · 3 comments

Comments

@ahyunSeo
Copy link

Hello, thank you for your great work.

I want to extend gcn which involves message passing,
but I'm new to GCN so I have a minor question.

I have to types of node A, B.
Basically I want to train different weights jointly. (Weight_AA, Weight_AB, Weight_BA, Weight_BB)
During the node representation update,
A(t+1) = Weight_AA*A(t)adj(AA) + Weight_ABB(t)adj(BA)
B(t+1) = Weight_BB
B(t)adj(BB) + Weight_BAA(t)*adj(AB)
The first terms are simple graph convolution layer with adj(AA), adj(BB) are both square
but for the adj(BA), adj(AB) it might not be square, (# of two types of nodes will differ)

Can I use non-square adj matrix during the whole process? (normalize, forward, ...)

@tkipf
Copy link
Owner

tkipf commented Oct 18, 2018 via email

@ahyunSeo
Copy link
Author

Do you mean by this line?
https://github.com/riannevdberg/gc-mc/blob/master/gcmc/preprocessing.py#L99

Also, thank you for sharing another good implementation.

@tkipf
Copy link
Owner

tkipf commented Oct 18, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants