Implementation of loss function
LiuYuLOL opened this issue · 4 comments
LiuYuLOL commented
Hi thanks for the great work.
I'm just reading the code and wondering where is the implementation of the L loss (equation 11 in the paper)?
Cheers,
Yu
sunzequn commented
Hi Yu,
Thanks for your interest in our work! The overall loss is implemented at line 330 of the alinet.py.
LiuYuLOL commented
Thanks for your reply.
Sorry. I got an old version file. Just notice the update.
Can I ask why ''r_x + r_y'' can be regarded as the new relation when generate_2hop_triples?
sunzequn commented
It has no meaning, just the placeholder to form triple-like edges used for the adjacent matrix generation, where the edge types (i.e., relations) do not count.
LiuYuLOL commented
Thanks!