Model Outputs The Same Value for All Graphs in Binary Classification #5740
Unanswered
AlexNiko47
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This is most likely due to the fact that the input data |
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.
-
Hi!
I'm trying to build a binary graph classification model where I have graphs of fixed size (each having 978 nodes, with each one having one feature) where the adjacency matrix represents the similarity between the nodes. I obtained pretty bad results on my actual data so I tried creating a mock dataset where I tried to make the two classes more distinctive (with the differences being not too subtle but not huge as well). Here is my implementation below:
However, whenever I try to train the model, the graph outputs are exactly the same after just a couple of epochs. I've tried just about every pooling function PyG has and tinkered with each and every single hyperparameter (lr, wd, adding a scheduler etc.) and the outputs still remain exactly the same even with this simple model which only uses
Linear
layers and a pooling layer. Here is a snippet of one batch in the training run:Is there anything wrong in my implementation or in the way I pose the problem? I've tried a regular PyTorch MLP and found it pretty easy to classify each "graph" if I was just treating everything as tabular data, so I really have no idea what I'm doing wrong.
Adj_Similarity.csv
Beta Was this translation helpful? Give feedback.
All reactions