Replies: 1 comment
-
Can you try to replace |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hello! I'm new to PyG and enjoying it very much, however I have run into an issue creating a data object that I just can't seem to figure out. I'm trying to use Graph Autoencoder on a custom PyG Data object, but when I attempt to train it, the loss, AUC and AP do not change. The exact same autoencoder works when using PyG's example data objects (Cora, etc), so I think I am making an error somewhere in the process of creating my custom data object. I used data from Geoff Boeing's street network node/edge lists, specifically from Aberdeen in this example. Here's the process of making my data object consisting of node features (xy coords) and edge index (source and destination nodes) from node and edge csv's (already converted to dfs nodes_ab and edges_ab).
Create custom data object
Data splitting, adding positive and negative edges for autoencoder
Creating and running autoencoder
Parameters
Set up environment
Initialize the optimizer
Set up and run the encoder
Sorry for the massive code wall! I don't know where the issue is occurring so wanted to include everything. Here is the output from running this.
Training loss: 34.538780212402344 Epoch: 001, AUC: 0.5000, AP: 0.5000
Training loss: 34.538780212402344 Epoch: 002, AUC: 0.5000, AP: 0.5000
Training loss: 34.538780212402344 Epoch: 003, AUC: 0.5000, AP: 0.5000
Etc etc, for 100 epochs.
I've tried incorporating node labels (y), using dummy variables for the node features, using node index for node labels, relabeling the index numbers, and adjusting the learning rate and optimizer. I am still running into the same issue. I found two other people who experienced this here, but their issues were solved after incorporating (non-index) node features, which hasn't worked for me. Thanks in advance and let me know if I was unclear or more info is needed.
Beta Was this translation helpful? Give feedback.
All reactions