Convert data to hetero using attribute #6069
Unanswered
antoni4040
asked this question in
Q&A
Replies: 2 comments 5 replies
-
This warning indicates that you have edge types in |
Beta Was this translation helpful? Give feedback.
3 replies
-
I guess you can do something like edge_type = num_node_types * edge_type + data.node_type[data.edge_index[0]] |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm trying to create heterogeneous data from homogeneous using to_heterogeneus like this:
Basically, the last attribute in my nodes is an integer (1 through 10 for example) that corresponds to the correct node group.
But, I get this:
ValueError: Could not construct a 'HeteroData' object from the 'Data' object because single edge types span over multiple node types
I suppose there's something that I don't understand here.
Beta Was this translation helpful? Give feedback.
All reactions