-
Notifications
You must be signed in to change notification settings - Fork 266
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
Doing graph-level classification? #33
Comments
Have a look here: tkipf/gcn#4. This only applies
for the TensorFlow implementation though. Hope this helps!
…On Wed 27. Jun 2018 at 23:42 gailmargolis76 ***@***.***> wrote:
My input is such that each subject has their own graph. This is different
from the example given in train.py where there is only 1 graph (a citation
network). In the tensorflow implementation of gcn, you suggest doing
graph-level classification by combining the adjacency matrices of all the
graphs in the input sample into one large adjacency matrix (as a sparse
block-diagonal matrix). The part I am not sure how to implement in keras is
the pooling of the output to produce 1 classification per graph. Any tips
would be greatly appreciated!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#33>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHAcYJWmmhWbZ80CLdpev3L8aMxNscgTks5uBApogaJpZM4U6flP>
.
|
Ah, i just realized you’re explicitly asking about how to do this in keras.
This is a bit tricky due to the restrictions of the API and I would
recommend going with pure TF in this case.
…On Wed 27. Jun 2018 at 23:46 Thomas Kipf ***@***.***> wrote:
Have a look here: tkipf/gcn#4. This only
applies for the TensorFlow implementation though. Hope this helps!
On Wed 27. Jun 2018 at 23:42 gailmargolis76 ***@***.***>
wrote:
> My input is such that each subject has their own graph. This is different
> from the example given in train.py where there is only 1 graph (a citation
> network). In the tensorflow implementation of gcn, you suggest doing
> graph-level classification by combining the adjacency matrices of all the
> graphs in the input sample into one large adjacency matrix (as a sparse
> block-diagonal matrix). The part I am not sure how to implement in keras is
> the pooling of the output to produce 1 classification per graph. Any tips
> would be greatly appreciated!
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#33>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AHAcYJWmmhWbZ80CLdpev3L8aMxNscgTks5uBApogaJpZM4U6flP>
> .
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My input is such that each subject has their own graph. This is different from the example given in train.py where there is only 1 graph (a citation network). In the tensorflow implementation of gcn, you suggest doing graph-level classification by combining the adjacency matrices of all the graphs in the input sample into one large adjacency matrix (as a sparse block-diagonal matrix). The part I am not sure how to implement in keras is the pooling of the output to produce 1 classification per graph. Any tips would be greatly appreciated!
The text was updated successfully, but these errors were encountered: