DeepKE icon indicating copy to clipboard operation
DeepKE copied to clipboard

泛化的拉普拉斯矩阵(Generalized Laplacian matrix)

Open immense8342 opened this issue 5 years ago • 2 comments

Describe the question

deepke自带的GCN模块好像没有使用泛化的拉普拉斯矩阵(Generalized Laplacian matrix)是吗?还是只是我阅读代码的时候没理解? “几何平均受极端值影响较小,因此是GCN中比较常用的归一化方法” deepke是使用了算术平均的方法是吗? https://blog.csdn.net/July541/article/details/107531735 https://blog.csdn.net/VariableX/article/details/109820684

Environment (please complete the following information):

  • OS: window
  • Python Version 3.7

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

 def forward(self, x, adj): #adj是邻接矩阵
        L = x.size(1)
        AxW = self.fc1(torch.bmm(adj, x)) + self.fc1(x)
        AxW = AxW / L
        AxW = F.leaky_relu(AxW)
        AxW = self.dropout(AxW)
        for fc in self.fcs:
            AxW = fc(torch.bmm(adj, AxW)) + fc(AxW)
            AxW = AxW / L
            AxW = F.leaky_relu(AxW)
            AxW = self.dropout(AxW)

        return AxW

immense8342 avatar Apr 17 '21 01:04 immense8342

好像GCN作者还没有完全实现好。。。是吗

immense8342 avatar Apr 18 '21 14:04 immense8342

GCN已实现,参考的是Attention Guided Graph Convolutional Networks for Relation Extraction这一篇论文中提出的模型

tlk1997 avatar Aug 08 '21 05:08 tlk1997