nju-websoft/AliNet

Implementation of loss function

LiuYuLOL opened this issue · 4 comments

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

Hi Yu,

Thanks for your interest in our work! The overall loss is implemented at line 330 of the alinet.py.

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?

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.

Thanks!