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?
In the function
run_epoch
, you calculate the loss betweenpred
andlabel
. 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 thelabel
?