Skip to content

How to compute the affinity matrix #20

@sgdy3

Description

@sgdy3

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions