For unseen data inference with graph sage conv in inductive setting. #4231
Replies: 2 comments 6 replies
-
The inductive setting is independent from the utilized GNN operator. You can apply train_loader = NeighborLoader(train_data, ...)
train(model, train_loader)
test_loader = NeighborLoader(test_data, ...)
test(model, test_loader) |
Beta Was this translation helpful? Give feedback.
-
@rusty1s Hi, assume that there are two graph, one for training, one for testing, train a graphSAGE on NeignborLoader(data, num_neighbors = [15, 10], batch_size = 128). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder how inductive setting for unseen data inference with graph sage works. The paper said it does work in an inductive setting but does just putting data into sage conv make it inductive already? Like we do everything as we normally do like in transductive way with one big graph (with neighbor sampling and mini-batching) into sage conv makes it already inductive so that I can put any unseen nodes to the model afterwards?
Or should I make input data like 'indutive data'? I mean, should I make input data inductive with subgraph for each computation graph so it is not one big graph anymore but computation graphs for all destination nodes? Then can the sage conv finally work like inductive one as it says in the paper?
I hope I am clear on what I am asking. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions