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

How can I reproduce the experiment using only the adjacency matrix without node features? #71

Open
Faith0918 opened this issue Mar 31, 2021 · 2 comments

Comments

@Faith0918
Copy link

Hi, I'm a huge fan of yours.

I have an issue reproducing your experiments using only the adjacency matrix without node features.

I would like to ask you how should it be coded to reproduce the performance in your paper trained without node features.

If it's okay with you, I would love to learn from your code.

Thank you.

@Faith0918 Faith0918 changed the title using only the adjacency matrix without node features How could I reproduce the experiment using only the adjacency matrix without node features? Mar 31, 2021
@Faith0918 Faith0918 changed the title How could I reproduce the experiment using only the adjacency matrix without node features? How can I reproduce the experiment using only the adjacency matrix without node features? Mar 31, 2021
@xlleng
Copy link

xlleng commented Apr 19, 2021

Hey guys
maybe I could answer your question

You can use this code:

import numpy as np
import networkx as nx
features = np.identity(adj.shape[0])
features = nx.adjacency_matrix(nx.from_numpy_matrix(features))

Make the feature matrix as a indentity matrix
wish this would help you

@Faith0918
Copy link
Author

Faith0918 commented Apr 19, 2021 via email

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

2 participants