HGNN icon indicating copy to clipboard operation
HGNN copied to clipboard

How to compute the affinity matrix

Open sgdy3 opened this issue 1 year ago • 0 comments

Hi, I notice that in your paper these is a formular stated like this :$A_{ij}=exp(-\frac{2D_{ij}^2}{\Delta})$. But in your repo, the corresponding code is np.exp(-dis_vec[0, node_idx] ** 2 / (m_prob * avg_dis) ** 2) , seems like computing $A_{ij}=exp(-\frac{D_{ij}^4}{\Delta})$. Could please explain it's this or mistake or i misundersood your code ?

sgdy3 avatar Aug 04 '23 11:08 sgdy3