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

why the accuracy in pubmed is so high? #157

Open
dkhonker opened this issue Jun 18, 2024 · 0 comments
Open

why the accuracy in pubmed is so high? #157

dkhonker opened this issue Jun 18, 2024 · 0 comments

Comments

@dkhonker
Copy link

The code (based on docs):

from deeprobust.graph.data import Dataset
from deeprobust.graph.defense import GCN
data = Dataset(root='/tmp/', name='pubmed')
adj, features, labels = data.adj, data.features, data.labels
idx_train, idx_val, idx_test = data.idx_train, data.idx_val, data.idx_test
gcn = GCN(nfeat=features.shape[1],
          nhid=16,
          nclass=labels.max().item() + 1,
          dropout=0.5, device='cpu')
gcn = gcn.to('cpu')
gcn.fit(features, adj, labels, idx_train) # train without earlystopping
gcn.fit(features, adj, labels, idx_train, idx_val, patience=30) # train with earlystopping
gcn.test(idx_test)

And i get the test accuracy is ~86%.

But from paperswithcode and GCN paper, the accuracy of gcn is ~80%.

Do you know what caused this?

@dkhonker dkhonker changed the title wht y the accuracy in pubmed is so high? why the accuracy in pubmed is so high? Jun 18, 2024
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