-
i am trying to find the explanantion behind this. i found the corresponding documentation (i think), but am still a little confused: https://pytorch-geometric.readthedocs.io/en/latest/_modules/torch_geometric/loader/link_neighbor_loader.html print(x)
in this example, edge edit: i see that some documentation on the negative sampling indicates that there will be false negatives (https://pytorch-geometric.readthedocs.io/en/latest/modules/loader.html#torch_geometric.loader.LinkLoader) since we are doing some approximations. Does that mean there will be false positives for the positive edges as well? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Definitely not. Actually, the returned |
Beta Was this translation helpful? Give feedback.
-
wanted to add some additional context here.. Here is my code:
an example print/AssertionError:
|
Beta Was this translation helpful? Give feedback.
-
@EdisonLeeeee i may be misinterpreting your response, but i found the answer to my confusion. there are no false positives. basically, a subgraph is created at every batch and then the positive nodes are valid edges within this subgraph. since i have |
Beta Was this translation helpful? Give feedback.
@EdisonLeeeee i may be misinterpreting your response, but i found the answer to my confusion. there are no false positives. basically, a subgraph is created at every batch and then the positive nodes are valid edges within this subgraph. since i have
num_neighbors = [1[
, i will run into cases where the positive edges are notx['edge_index']
. if i donum_neighbors=[-1]
, i see the positive edge show up. furthermore, i created some test code to test certain properties of the subgraph sampled at every batch which made things clear for me. all positive edges are in this batch-level subgraph.