-
I'm studying TGN recently and reading example code. I don't understand what It contains data |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Here, |
Beta Was this translation helpful? Give feedback.
LastNeighborLoader
will return the last encountered neighbohrs ofn_id
in an ever-growing graph. The idea is to insert new temporal edges viainsert
, and sample encountered edges via__call__
.Here,
e_id
is used as a reference to the global index of the returned edge. This helps to gather the respective edge features from your dataset belonging to the sampled edges.__assoc__
is used to map global edge indices to the local ones belonging to the sampled subgraph. For example, your original graph may contain 10,000 nodes, but your sampled subgraph does only reference 100 of them.