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

Custom dataset creation #4

Open
acecreamu opened this issue Apr 21, 2019 · 4 comments
Open

Custom dataset creation #4

acecreamu opened this issue Apr 21, 2019 · 4 comments

Comments

@acecreamu
Copy link

acecreamu commented Apr 21, 2019

Hi, thank you for such an impressive work. I would like to apply your algorithm to my task, so I need to create dataset which will fit your code. I have, say, 150 graphs of 200 nodes each, where all the nodes are equal.


I'm trying to understand your txt files, but have some issues with that.
For example:

10 0
0 3 1 2 9
0 3 0 2 9
0 4 0 1 3 9
0 3 2 4 5
0 3 3 5 6
0 5 3 4 6 7 8
0 4 4 5 7 8
0 3 5 6 8
0 3 5 6 7
1 3 0 1 2

My assumption is that the block correspond to a graph, 10 is a number of nodes while 0 is a graph class label. Each row correspond to a node, where first value is a (node label I guess?), second is a number of links, and other are connections. Is that right? Is row number correspond to the node index?

@kimsu55
Copy link

kimsu55 commented Apr 13, 2020

I reviewed the code, and I have a same opinion as you.

@weihua916
Copy link
Owner

weihua916 commented Apr 13, 2020

Hi! Thanks for your interest.
GIN has been implemented by major libraries like Pytorch Geometric and DGL. The implementation is highly optimized and faster. I recommend using those libraries for your purpose. Those libraries also provide the same set of datasets as our work, so you should be able to easily reproduce our work using the libraries.

@mdanb
Copy link

mdanb commented Mar 26, 2021

@weihua916 Can you clarify the format for the files? I'm also wondering about this.

@weihua916
Copy link
Owner

We directly adopted the dataset files from https://github.com/muhanzhang/pytorch_DGCNN/tree/master/data

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

4 participants