RandomLinkSplit in custom HeteroData #4453
Replies: 2 comments 2 replies
-
Can you share a simple example to reproduce? I don‘t think this is related to having no features. |
Beta Was this translation helpful? Give feedback.
-
Hi @rusty1s thanks for answering. Unfortunately, I cannot share my data. I performed the split manually without recurring to the built in function.
I've tried the same model on a built in dataset, and it works perfectly. (I hope the problem is not caused by the train test split I am doing manually lol). I can print my heterodata object and it gives
that looks exactly like a built in dataset. Can you spot the bug? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, and tanks for maintaining this library very active!
I am facing some trouble with my Heterogeneous graph on which I want to perform link prediction (infer on new nodes).
My graph (which I query directly from Neo4j) has 4 different node types (only 1 has features) and 5 different edge types (only 1 has features). I would like to embed my graph, but I got stuck while using the
RandomLinkSplit
function, and I can't undersrand why it doesn't work.To load the graph I assign manually the different node and edge types (most of the attributes dataframes are None because I have no features):
and then to perform train test split:
but I get the error
Is this because I am trying to include in the tt split some edges that don't have any features?
If I don't transform my graph to undirected and I dont use the reverse edges, I get the following error:
Maybe there is something very stupid that I didnt understand about graphs, but I can't seem to get my head around this; I've been fighting with this function for over a week now...
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions