.]]
### Number of relation types (r)
num_rels = 2
### Weight matrix of relation number 1 (n,n...= np.concatenate((W_rel1, W_rel2))
W_rels = np.reshape(W_rels,(num_rels, n, h))
print(W_rels)
---...= np.matmul(X, W_rels)
print(L_0_rels)
-----
[[[ 0.21535272 0.38639244 -0.55623279] # Node 1 (3rd...= np.concatenate((A_rel1, A_rel2))
A_rels = np.reshape(A_rels, (num_rels, n, n))
print(A_rels)
-...[0,1,0] + L_0_rels[0,2,0] + L_0_rels[0,3,0] + L_0_rels[0,4,0] + L_0_rels[1,3,0])
你可以从这个例子中注意到,邻域扩散(GCN