Edge Classification using Graph Neural Networks #9050
Unanswered
marielyner
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It looks like |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I am working on a fraudulent transactions detection in SWIFT network using GGN.My graph has banking codes (SWIFT BIC codes) as nodes and the edges represent transactions. I also added an attribute label = 0 for fraudulent transaction and 1 for non-fraudulent transaction. Every edge has 4 attributes including amount, reason, currency and timestamp. Below are the shapes of my tensors:
Node Features Tensor Shape: torch.Size([1, 210, 6])
Edge Features Tensor Shape: torch.Size([200, 4])
Edge Index Tensor Shape: torch.Size([2, 200])
Adjacency Matrix Tensor Shape: torch.Size([1, 210, 210])
Labels Tensor Shape: torch.Size([200, 1])
Below is the code to GGN:
And this is my model call
I am using as input_dim 4 since I have 4 features in my edge attributes. I keep on getting this error: RuntimeError: index 202 is out of bounds for dimension 0 with size 200
To note that I have 200 edges, thus 200 labels and 200 rows of edge attributes but in my edge_indexes I have reference to 210 nodes, since I have 210 nodes. Thank you for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions