-
Hello. I would like to do node&edge classification by GATConv. Currently, I have implemented a model to do the node classification, but I'm not sure if GATConv can be used for edge classification(is_in_path/is_not_in_path). I saw a solution in another post, and it suggests taking a dot product between nodes connected by edges and passing it to the BCE. I deployed a similar structure, but the model accuracy is relatively low. I'm not proficient in Pytorch Geometric, so any suggestions will be appreciated!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Check out this example on link prediction https://github.com/pyg-team/pytorch_geometric/blob/master/examples/link_pred.py. Some things you could try if you're not already doing so is
|
Beta Was this translation helpful? Give feedback.
-
I got the training result following the edge embedding @rusty1s mentioned above. The performance of my model is quite poor. Is there any way I can improve my model performance, or maybe the GAT is not suitable for this problem? |
Beta Was this translation helpful? Give feedback.
Check out this example on link prediction https://github.com/pyg-team/pytorch_geometric/blob/master/examples/link_pred.py. Some things you could try if you're not already doing so is
BCEWithLogitsLoss
for stability.