amzn / ss-aga-kgc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

edge_index in function get_kg_edges_for_each()

RongchuanTang opened this issue · comments

For a triple (h, r, t), it seems an inverse triple (t, r, h) is added to the generated edge_index in function get_kg_edges_for_each(). What does this do?

This is to put the relations between head and tail entities bidirectional, so in the message passing part they can both influence each other.

Thanks, Zijie! I re-read the paper and have saw your explanation.