DeepGraphLearning/KnowledgeGraphEmbedding

confused about implementation of DistMult

junkangwu opened this issue · 1 comments

According to the model in distmult paper, $$score = h_s * M_r * h_o^T$$. However, in most papers about knowledge graph completion including the model in CompGCN, they are realized as a form of $$score = h_s * r * h_o^T$$. May I ask you about the insight behind your realization form?

The distmult model uses a diagonal matrix, so these two definitions are equivalent.