-
I have found a word "iterations" in It say “ Sample 512 nodes per type and per iteration for 4 iterations”,can you tell me what is the meaning of "iterations " in dataloader? loader = HGTLoader( |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
The word iterations here mean how many steps are being used to sample neighbors. |
Beta Was this translation helpful? Give feedback.
-
and for the code in https://github.com/pyg-team/pytorch_geometric/blob/master/examples/hetero/to_hetero_mag.py train_loader = HGTLoader(data, num_samples=[1024] * 4, shuffle=True, if the data from the training set and the data from the validation set all storage in the same graph :data Does the data obtained from train_loader contain the data in the validation set? |
Beta Was this translation helpful? Give feedback.
-
Or the data obtained from train_loader only contain the data from training set(beacuse of the train_mask and val_mask)? train_input_nodes = ('paper', data['paper'].train_mask) train_loader = HGTLoader(data, num_samples=[1024] * 4, shuffle=True, |
Beta Was this translation helpful? Give feedback.
The word iterations here mean how many steps are being used to sample neighbors.
HGTLoader
is a layer-wise sampling strategy, and so we will sample 512 nodes in 4 iterations/layers. Everytime we have sampled nodes in one layer, they will be added as seed nodes so that we can also sample their neighbors in the follow-up iteration.