Generating Dataset for Graph Classification #5255
Unanswered
gdemirezen
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Yes you can use a
Perfectly valid. I don't have an answer for your second question sorry. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I created a dataset for graph classification by creating instances of "torch_geometric.data.Data" and appending them to a list. My list fits into memory. Can I use pyg functions with this dataset structure without implementing a class that inherits from "InMemoryDataset" and therefore, without implementing its necessary methods such as "raw_file_names" or "processed_file_names"?
To use the dataset, I create a data loader using "torch_geometric.loader.DataLoader", I iterate over it and reach node features by data.x and use them in models such as the following. Is this a valid usage of the dataset that is constructed simply as a list of "Data" instances?
e.g.
Additionally, is there a function to perform minmax or standard scalers to this dataset and save the generated scalers for further use? Since I couldn't find this functionality, I created and saved the scaled data before and when performing cross-validation, I load the related dataset file at the beginning of each trial.
Thanks for the great package and for maintaining it so well.
Beta Was this translation helpful? Give feedback.
All reactions