malllabiisc / CompGCN

ICLR 2020: Composition-Based Multi-Relational Graph Convolutional Networks
Apache License 2.0
597 stars 107 forks source link

What is the label in run_epoch #28

Closed SRL94 closed 3 years ago

SRL94 commented 3 years ago

In the function run_epoch, you calculate the loss between pred and label. For my understanding, pred are the scores for all entities (or objects) given subjects and relations; however, label is not relevant to objects. Could you please explain what is the label?

SRL94 commented 3 years ago

I got it. The position of the real object is marked differently.