ValueError: Cannot generate a graph node
by to_hetero
#9612
-
Hi, Data builder:
Data:
DataLoader:
Model:
Error:
All the E1 nodes have at least one edge. Also, I even added dummy features to E1 to be like E2 but didn't work. |
Beta Was this translation helpful? Give feedback.
Answered by
mortezaezzabady
Aug 23, 2024
Replies: 1 comment 1 reply
-
Could you share what the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved the problems:
1- node ids should be 0-based, so I map my ids to
(0, data['person'].node_id.shape[0])
.2- There was no incoming edge to
person
nodes, so I made my graph undirectedT.ToUndirected()(data)
.