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

计算对比损失 #3

Open
Roiko97 opened this issue Sep 25, 2023 · 1 comment
Open

计算对比损失 #3

Roiko97 opened this issue Sep 25, 2023 · 1 comment

Comments

@Roiko97
Copy link

Roiko97 commented Sep 25, 2023

源代码中的负样本计算为,refl_sim.sum(1) + between_sim.sum(1) - refl_sim.diag() - (refl_sim * adj1).sum(1) - (between_sim * adj2).sum(1);但是根据论文中描述的,不同视图之间的负样本还应该减去节点自身的信息,即 - between_sim.diag()。 我认为最终代码应该修正为:neg = refl_sim.sum(1) + between_sim.sum(1) - refl_sim.diag() - between_sim.diag() - (refl_sim * adj1).sum(1) - (between_sim * adj2).sum(1)

@YanJiangJerry
Copy link

是的

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

2 participants