GAE output adjacency matrix #3769
-
Does anyone know how to reconstruct the prediction adjacency matrix using the graph autoencoder? When I call model.decode(), it returns a tensor with the shape: [num_edges], whereas the adjacency matrix is in the format [2, num_edges]. I am hoping to visualize the output graph to see if the model worked correctly. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The decoder has the |
Beta Was this translation helpful? Give feedback.
The decoder has the
forward_all
method, which can be used to obtain the fully adjacency matrix, see https://github.com/pyg-team/pytorch_geometric/blob/master/torch_geometric/nn/models/autoencoder.py#L33-L44.