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

Question about reproducing test accuracy on citation datasets #16

Open
Youth-49 opened this issue Oct 23, 2022 · 3 comments
Open

Question about reproducing test accuracy on citation datasets #16

Youth-49 opened this issue Oct 23, 2022 · 3 comments

Comments

@Youth-49
Copy link

Hi, I have read your paper, downloaded the code, and ran it without any changes (I follow the same hyperparameters and random seeds). But I found that I can't reproduce the accuracy reported in the README.md file.

My results (dataset, test accuracy) are:

cora, 82.4%
citeseer, 73.0%
pubmed, 80.0%

My version:

PyTorch=1.7.1 with cuda
networkx=1.11
numpy=1.19.2
scipy=1.5.2
scikit-learn=0.24.1
hyperopt=0.1.1

did I miss some information or do something wrong?

@allenhaozhu
Copy link
Owner

Sorry to confuse you, you could check issues. I give different ways for this. Tips: SGC and SSGC are very sensitive to weights decays.......

@Youth-49
Copy link
Author

Thanks for your reply.

yes I have checked the issues but I only found @EdisonLeeeee's experiments results, which are based on wrong codes (I guess) according to the following comments. (1-$\alpha$) shouldn't be multiplied with the term torch.spmm(adj, features). This bug has been fixed by you at that time and now I believe the codes are consistent with the paper.

I agree that they are sensitive to weight_decay. do you mean that the codes in this repository do not provide the right weight_decay parameter to achieve the test accuracy reported in the README file? I did not change the code provided in this repository.

Actually, I've tried several weight_decay values in SGC and SSGC, and I found that the best result SSGC can achieve on Cora is 82.8% under the weight_decay is {2e-5, 3e-5}, which is still below the accuracy reported.

if you change other parameters such as lr, please tell me because these parameters in the provided codes hold unchanged.

Thanks in advance.

@allenhaozhu
Copy link
Owner

In issue#13, I give a initialization for 83.5% in cora. Like what I explain, after fixed the bug, the performance slightly drop but the bug only on the cora,pubmed and citeseer because of deep copy in pytorch.

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