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

About the data's feature #22

Open
songzenghui opened this issue Feb 5, 2018 · 2 comments
Open

About the data's feature #22

songzenghui opened this issue Feb 5, 2018 · 2 comments

Comments

@songzenghui
Copy link

I notice the X in f(X,A) is known.like cora dataset,there's a file named xxx.x or xxx.tx ,how did you get the feature of the cora?If i only have its adj_matrix,how to use your model?

@tkipf
Copy link
Owner

tkipf commented Feb 5, 2018

If you do not have initial features for your nodes, you can either: assign a unique one-hot vector for every node (this results in X being the identity matrix), or you can compute some graph-based features, like node degree, or even a DeepWalk embedding of your nodes. Lastly, you can also combine the two approaches (i.e. concatenate identity matrix with feature matrix) -which can help in some cases.

@flyingjohn
Copy link

Hi tkipf,
I want to use GCN to model text .So i plan to build a graph with words, and each node represent a word like bird. But in this way , each node represent a dimension and all the nodes consists of the feature of a document. At this time, the channels of each node are the count of doucuments ,does GCN still work?

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

3 participants