-
Hey, I am trying to setup my own dataset, where each data point is a pair of graphs as well as a label. This dataset would be somewhat similar to GEDDataset, the difference being I dont have access to a label for each possible pair. Because of this I do not think I can take the same approach. I looked around and decided using HeteroData instead with basically one key for each graph might be better. One data point looks something like
My first question, is this a reasonable setup? I believe I can then access the relevant graph when I am loading the batches. With this current setup I am running into a problem though
The first two issues of course relate to the fact that I am storing two seperate graphs, however they appear to only be warnings. I am also confused why one data point looks like this
The (G, to, 1) part confuses me slightly. Any ideas wht I am doing or understanding wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think a good way to store your data is as a pair of graphs in a A |
Beta Was this translation helpful? Give feedback.
I think a good way to store your data is as a pair of graphs in a
Data
object as described here, for pairs without a label you could store some dummy value.A
HeretogenousData
object is built to store a graph with different node and edge types, as described here. So in the code you pasted this linedata['G1'].edge_index = graph1.edge_index
indicates that an edge is being created from node typeG1
to node type1
(1 as you didn't specify the other node type).