-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Roadmap] Advanced Graph Sampling Routines 🚀 #7331
Comments
Hi, Best, |
Yes, this is bullet point 3 under "Subgraph sampling". |
Happy to hear this ! I can't wait to try it. |
This routine is implemented in |
OK, I notice the Thanks a lot ! @rusty1s |
Would there be any interest in a contribution of the following sampler from DGL?https://docs.dgl.ai/generated/dgl.dataloading.LaborSampler.html#dgl.dataloading.LaborSampler |
Thanks for the pointer. What would be needed to integrate this into PyG? |
I used the pcg32 random number generator as the PRNG, given random seed z and vertex id t, An initial CPU contribution should be a fairly small PR. |
My PR is here: pyg-team/pyg-lib#242. |
🚀 The feature, motivation and pitch
Different GNN applications require customized sampling to improve the accuracy and/or performance. We propose the following advanced sampling routines with detailed benchmarking reports.
neighbor_sample
implementationhetero_neighbor_sample
implementation (Hetero neighbor sampler multithreading pyg-lib#215)pyg-lib
and/or PyGSubgraphType
withbidirectional
sampling support (1/2) #7199SubgraphType
with bidirectional sampling support (2/2) #7200bidirectional
sampling benchmarkstrim_to_layer
functionality which helps to boost the performance.trim_to_layer
utility function #6661SparseTensor
support fortrim_to_layer
#7089weight
vector toneighbor_sample
to sample based onweight
vector toneighbor_sample
to sample based on importance scores. Reference DGL implementation (seeprob
argument).pyg-lib
, see herepyg_lib.neighbor_sample
in casedirected=False
The text was updated successfully, but these errors were encountered: