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

Face TypeError during load data #50

Open
Wilson-ZHANG opened this issue Jul 28, 2019 · 2 comments
Open

Face TypeError during load data #50

Wilson-ZHANG opened this issue Jul 28, 2019 · 2 comments

Comments

@Wilson-ZHANG
Copy link

As the format of Cora Dataset(cora.cites & cora.content), I generate similar data as Cora. However, It gets error below after a few times modification on my data.
Traceback (most recent call last):
File "train.py", line 26, in
X, A, y = load_data(cites_path, content_path)
File "/data/zhangqifan/projects/keras-gcn-master/kegra/utils.py", line 26, in load_data
edges = np.array(list(map(idx_map.get, edges_unordered.flatten())), dtype=np.int64).reshape(edges_unordered.shape)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Could you give me some ideas about addressing this problem?
Thanks!

@WangFeng666
Copy link

I have also encountered this problem. For me, it is because some nodes in the edgelists(.cites) did not have features and labels, and when i make all nodes have features and labels, there is no problem. I wonder that could't semi-supervise learning if there is no feature and label on some nodes?

@DonghanHe
Copy link

I have also encountered this problem. For me, it is because some nodes in the edgelists(.cites) did not have features and labels, and when i make all nodes have features and labels, there is no problem. I wonder that could't semi-supervise learning if there is no feature and label on some nodes?

yes. I believe if you initialize a trainable feature for each of those nodes that doesn't have a feature, backpropagation can train it easily.

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