Generating graph for autoregressive model (path prediction) #6480
-
Hi all! I am here because I don't know how to handle whole path prediction where each edge is a component of an entire path between two nodes. My problem is the following: I have a graph that contains multiple types of edges, my objective is to predict if a path between two nodes exists. This is an autoregressive process, so supposing that I am trying to predict the presence of the i_th edge, I want to include in the subgraph all the i_th -1 edges already predicted while excluding all successive future edges that come after in the path (and that will be predicted later on). How can I generate this subgraph? Thank you in advance To clarify further: To solve this it would be sufficient to not include the specific type of edge subject to the prediction in the neighbourhood graph generated starting from the destination node of the current target edge. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Do you desperately need graph-sampling (e.g., |
Beta Was this translation helpful? Give feedback.
Do you desperately need graph-sampling (e.g.,
LinkNeighborLoader
) for this? Otherwise, I guess this is straightforward to implement. You have a GNN operating on the existing graph, and train against finding the next best node pair/edge. Afterwards, you simply concatenate this pair toedge_index
and repeat. The usage ofLinkNeighborLoader
makes this a bit harder to solve since it does not support modification to the underlying graph that easily (it operates on CSC sparse matrix format).