storyandwine / LAGCN

Code and Datasets for "Predicting Drug-Disease Associations through Layer Attention Graph Convolutional Networks"
51 stars 15 forks source link

在构造异构网络时好像没有如论文中所言对相似性矩阵进行标准化 #14

Closed porvinci closed 2 years ago

porvinci commented 2 years ago

main.py文件中的第16行

adj = constructHNet(train_drug_dis_matrix, drug_matrix, dis_matrix)

utils.py文件中

def constructHNet(drug_dis_matrix, drug_matrix, dis_matrix):
    mat1 = np.hstack((drug_matrix, drug_dis_matrix))
    mat2 = np.hstack((drug_dis_matrix.T, dis_matrix))
    return np.vstack((mat1, mat2))

此处构造了异构网络,后续将作为input graph G,但是好像并没有如论文中所言(论文中的构造异构网络部分)对相似性矩阵进行归一化操作?

storyandwine commented 2 years ago

It has been processed in advance. For more normalization details, please see https://github.com/xiangyue9607/SCMFDD/blob/master/Experiment_SCMFDD_All.m#L224

porvinci commented 2 years ago

好的,多谢