Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compute the affinity matrix #20

Open
sgdy3 opened this issue Aug 4, 2023 · 0 comments
Open

How to compute the affinity matrix #20

sgdy3 opened this issue Aug 4, 2023 · 0 comments

Comments

@sgdy3
Copy link

sgdy3 commented Aug 4, 2023

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant