Replies: 1 comment 4 replies
-
I don't have a good explanation yet. Are you using just binary cross entropy as in the example? What happens if you increase the number of negatives? |
Beta Was this translation helpful? Give feedback.
4 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, I am working with this code : https://github.com/pyg-team/pytorch_geometric/blob/master/examples/hetero/bipartite_sage_unsup.py , but only a subset of users (50k), products (1 mill) and edges (5 mill) - I sorted base df by user_id so that all edges for each user in graph are present. After running the first epoch I saw the loss was .00002. I figured this can be due to the many batches and gradient updates so printed the loss after every 10 batches in the first epoch and saw for the first batch was also .00002 - scarily too low for being so early on in training I believe. However, the evaluation metric - AUROC increased over this epoch from .51 to .83 as expected.
I am also working with the same graph but using Metapath2Vec instead of a GNN. I am experiencing the inverse problem of a steadily decreasing loss, but AUROC evaluation being constant over many epochs.
Does anyone know why this may be happening? Could it be I took too small subset of original dataset? My GNN code is exactly same as the linked code, my Metapath2Vec evaluation code is as follows - I added a linear head to provide similar evaluation as in the sample code :
Beta Was this translation helpful? Give feedback.
All reactions