Replies: 5 comments 12 replies
-
That looks correct :) I think that both data[':Class1'].x = [1, 1] # [num_class1, num_features_class1 - property :hasName]
data[':Class2'].x = [2, 1] # [num_class2, num_features_class2 - property :hasTitle] |
Beta Was this translation helpful? Give feedback.
-
Hi again, I have the following code for creating a custom dataset based on the depicted RDF graph above.
And I have the following output:
So, in theory, the classes are correct but for some reason the edge_index does not get the value. In this line here
The number @rusty1s would be great to have your input, suggestion here. Best, |
Beta Was this translation helpful? Give feedback.
-
If you do not have any pre-defined splitting strategy, you can do the splitting part in a later stage via the |
Beta Was this translation helpful? Give feedback.
-
@rusty1s I really appreciate your feedback, thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
Hi @rusty1s thanks for your response. Understood it clearly.. Further we tried running the code on the below data set
we got the error as follows
On debugging in class Model under method forward
Can you please help us with this issue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi PyG Community,
Based on the example described here, I need to create an Heterogeneous Graph out of an RDF graph. The RDF graphs comprises two classes, one object property, two datatype properties, and three instances (see Figure).
I want to ensure that the classes, properties, and instances are correctly modelled here according to PyG.
In this case I have the following transformation using the
HeteroData
class:data = HeteroData()
data[':Class1'].x = [1, 1] # [num_class1, num_features_class1 - property :hasName]
data[':Class2'].x = [2, 2] # [num_class2, num_features_class2 - property :hasTitle]
data[':Class1', ':isConnectedTo', ':Class2'].edge_index = [2, 2] # [2, property :isConnectedTo used twice]
Are my assumptions correct here?
Beta Was this translation helpful? Give feedback.
All reactions