MuGNN icon indicating copy to clipboard operation
MuGNN copied to clipboard

About adj matrix

Open EthanZhangYC opened this issue 3 years ago • 2 comments

Hi,

I am looking into your code. But it seems that in models.py, the self.multi_head_att_layers(self-attention) and self.relation_attention_gcns(cross-KG attention) use the same adjacency matrix, rather than different adj matrix for each channel. Is there anything wrong with my understanding?

EthanZhangYC avatar Apr 04 '21 02:04 EthanZhangYC

Hi,

These two models use adjs with the same connectivity. But the edge weights are calculated by KG Self-Attention and Cross-KG Attention module separately in two channels.

acharkq avatar Apr 05 '21 03:04 acharkq

Okay, thanks for your reply!

By the way, could you please tell me how do you generate files of relation seed? It seems that it does not exist in the original dataset.

EthanZhangYC avatar Apr 06 '21 01:04 EthanZhangYC