-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Dataset] Add CoraFull, Amazon, KarateClub, Coauthor Dataset #855
Conversation
|
Todo
|
@@ -123,7 +123,7 @@ def graph_classify_task(prog_args): | |||
perform graph classification task | |||
''' | |||
|
|||
dataset = tu.TUDataset(name=prog_args.dataset) | |||
dataset = tu.LegacyTUDataset(name=prog_args.dataset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the LegacyTUDataset
and TUDataset
have the same APIs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The processing code are quite different. In the new TUDataset
, I only used raw data without adding one-hot label or constant as node features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hope QM9 results will be online soon
@@ -136,3 +141,138 @@ def __getitem__(self, item): | |||
return self.valid_graphs[item], self.features[self.valid_mask_list[item]], self.valid_labels[item] | |||
if self.mode == 'test': | |||
return self.test_graphs[item], self.features[self.test_mask_list[item]], self.test_labels[item] | |||
|
|||
|
|||
class PPIDataset(object): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How's this different than LegacyPPIDataset
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost same other than the __getitem__
part. I changed it to inheritance and override __getitem__
Description
Add CoraFull, Amazon, KarateClub, Coauthor Dataset
Checklist
Please feel free to remove inapplicable items for your PR.
or have been fixed to be compatible with this change
Changes