-
Notifications
You must be signed in to change notification settings - Fork 351
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
Meaning of 'features' object #45
Comments
I recommend using the data loader from https://github.com/tkipf/keras-gcn/blob/master/kegra/utils.py Then you don’t have to deal with this strange .allx etc format (which is just supplied in this repo because it was used in a benchmark from an earlier paper from some other lab on which we base our evaluation on) :) |
i have the same question about how to apply it to my own dataset, so if you have solved this problem , could you give me some guidance please, thanks a lot ! |
|
Dear @tkipf
first of all, thank you for the excellent work! Your paper and the provided code are helpful to get started with GCN.
I'm currently trying to apply your algorithm to my data.
After looking at the load_data() function, I was able to create an adjacency matrix in the same format as your Cora example.
However, I struggle with the node feature object, because I don't understand the meaning of the content cora.tx and cora.allx.
The shape is (2709x1433) (#41 nodes x #features), so apparently, there are 1433 node features.
The print is as follows
How can we interpret the rows? I can't make sense of it.
This format is usually an edge list format, but as we have node features, how do the edges come into play?
I looked into your other repositories and issues around this topic and couldn't find anything which helps me understand the structure of the .tx and .allx files.
tkipf/gcn#36
tkipf/gcn#125
tkipf/gcn#114
tkipf/gcn#36
tkipf/gcn#22
#35
I'm planning to use node degree as recommended here tkipf/gcn#22 (and add more features later on)
My current attempt is to do
As I don't understand the Cora output, I can't really assess if that is correct or not.
Could you provide more guidance and explanation for that?
That would be great :)
Thank you in advance,
Best,
Minh
The text was updated successfully, but these errors were encountered: