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

some question about GAT #46

Closed
junkangwu opened this issue Mar 12, 2020 · 4 comments
Closed

some question about GAT #46

junkangwu opened this issue Mar 12, 2020 · 4 comments

Comments

@junkangwu
Copy link

Hello, recently when I read paper of GAT again, I found a question and was confused. I hope to obtain your help.
The coefficient of $\alpha_{i,j}$ is decided by the features of node i and node j under the supervised learning of those training set nodes with corresponding labels. But if the situation in the traing set is: The two vertices of an edge belong to the training set and the test set respectively. Theoretically, node without label will not be able to use gradient descent for learning. In this way, how does GAT it works?
Thanks a lot !

@PetarV-
Copy link
Owner

PetarV- commented Mar 12, 2020

Hello,

Thank you for your issue.

The answer to your question depends on whether you're doing transductive or inductive learning.

If transductive, the training algorithm sees all nodes (including test nodes), and then it is used for learning.

If inductive, the test nodes are masked out along with their edges during training and, for the purposes of the training algorithm, are treated as non-existing. At test time we add them back.

Hope that helps!

Thanks,
Petar

@junkangwu
Copy link
Author

In this way, if transductive, the whole graph will be thrown into training, only the labels of test set are marked?

@PetarV-
Copy link
Owner

PetarV- commented Mar 12, 2020

You are correct -- test and validation nodes won't be used for cross-entropy loss.

@junkangwu
Copy link
Author

Thanks a lot!!

@PetarV- PetarV- closed this as completed Mar 12, 2020
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