-
I am building a custom dataset that has two node types (heterogeneous setup). Type 1 nodes have labels (0,1, ..., |C|) and Type 2 nodes don't have labels (-1). Thus I set up a list of Could someone help me with this or help me find a good example of train_mask shuffle?
Error (Due to the unshuffled index of train_mask)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can just set the data = HeteroData()
data['A'].train_mask = ...
loader = NeighborLoader(data, input_nodes=('A', data.['A'].train_mask), ...) |
Beta Was this translation helpful? Give feedback.
You can just set the
train_mask
of a single node type: