Building a zero-diagonal adjacency matrix sample-wise from bipartite node's edge_index
#5805
Unanswered
ndrwnaguib
asked this question in
Q&A
Replies: 1 comment
-
Hey, I answered you on Slack as well, but just for completeness: Batch-wise adjacency matrices are stacked diagonally, so converting your batched adjacency matrix to a dense one and then applying modifications to I am also wondering why you do
since this will result in a sparse matrix with 0% sparsity. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a problem concatenating
edge_index
andedge_attr
across batches, I have a custom impl that works only after I have loaded the batch. Here is the function I use:The above implementation produces the intended results only if
edge_index
andedge_attr
were passed after the batch was loaded. But, this is too slow to include in a training step, so I am trying to achieve the same results by applying the same function sample-wise in theget(...)
function in theDataset
However, results are not the same,
Here are the
indices()
andedge_index
from both implementationsAlthough it may seem that
edge_index[0]
values are equal to those ofadj.indices()[0]
, they're actually not.Note:
_pad_adj
basically adds zeros to the diagonal and puts the features on the right top quadrant of the matrix and its transpose to the left bottom quadrant.Any thoughts? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions