Issue in Retaining the Origninal Shape of Adjacency Matrix after Conversion from Dense to Sparse #9149
Unanswered
srikesh-07
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I assume you hold some duplicated edges in |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Community,
Thank you for intending to help me.
I am working on a custom bipartite dataset that seems good until I meet this issue. The issue is while reconstructing the edge indices from dense matrix of
Data
instances by theDataLoader
The
Batch
of the above instance looks like,I am trying to convert the sparse adjacency matrix to a dense adjacency matrix and finally reconstruct the sparse adjacency matrix using the recently converted dense adjacency matrix.
I have used the methods
to_dense_adj
anddense_to_sparse
fromtorch_geometric.utils
package. The conversion output seems to be a bit sketchy,We can see some edges are being missed in the newly constructed sparse adjacency matrix. I didn't find the reason. Can anyone help me to fix the issue or give me the reason for the above issue? Thank you for reading and the help from the community will be much appreciated.
Custom
Data
function code is attached below,Again Thank You !!
Beta Was this translation helpful? Give feedback.
All reactions