About TemporalDataLoader in TGN #4499
Everyday-seu
started this conversation in
General
Replies: 1 comment 3 replies
-
Len(data) refers to the number of events in TemporalData, see https://github.com/pyg-team/pytorch_geometric/blob/master/torch_geometric/data/temporal.py#L148. We felt that overriding this property for temporal data made a lot of sense. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is len(data) correct? In the example you gave in tgn:
train_data, val_data, test_data = data.train_val_test_split(val_ratio=0.15, test_ratio=0.15)
train_loader = TemporalDataLoader(train_data, batch_size=200)
But len(train_data)=5,so len(data)=5 and it turns to the "arange" becomes(0,5,batch_size). Is it correct to use something like data.num_events?
Hope for your reply! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions