-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Feature] Fixed sampler with limit on sampled nodes/edges in batch subgraph #6668
Conversation
Fix typo in ShaDowKHopSampler sample() function
Merge latest DGL changes
Merge latest DGL changes
Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:
|
Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:
|
Thanks for the edits, @frozenbugs. Happy to address all the formatting errors. Do you see any issues with the function implementation itself? |
Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:
|
Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:
|
the code LGTM now, can you run The test case can be put here: tests/python/pytorch/dataloading, and you can use this test case as example: https://github.com/dmlc/dgl/blob/master/tests/python/pytorch/graphbolt/impl/test_in_subgraph_sampler.py |
Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:
|
Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:
|
Hmm, not sure why CI test failed. I already ran
Have also merged changes so this PR is up-to-date. |
There are 2 lint checkers, you passed the initial one but not the one in the CI that runs after that. https://dgl-ci-result.s3.us-west-2.amazonaws.com/dgl/PR-6668/10/10/logs/logs_dir/tmp1ptbor3n.log
|
Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:
|
Thanks, @mfbalin. Should be fixed now. |
Looks like the error still is:
The function signature in my code is: def sample(self, g, indices, exclude_eids=None): The def sample(self, g, indices): This is intentional, I added an optional |
@ayushnoori You can add |
Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:
|
Thanks, @mfbalin – done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback from @frozenbugs should now be addressed.
Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:
|
Hi @ayushnoori , I have this PR merged. And it can be used in nightly DGL wheel, and next DGL release. |
Understood, thanks so much, @frozenbugs! |
…bgraph (dmlc#6668) Co-authored-by: Hongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com>
Description
Subgraph sampler that sets an upper bound on the number of nodes included in each layer of the sampled subgraph. At each layer, the frontier is randomly subsampled. Rare node types can also be upsampled by taking the scaled square root of the sampling probabilities (best strategy TBD). The new
FixedSampler
performs node-wise neighbor sampling and returns the subgraph induced by all the sampled nodes.The relevant issue is: #6623, thanks to @frozenbugs and @jermainewang for their input and review.
Checklist
Please feel free to remove inapplicable items for your PR.
Please note that unit tests for
FixedSampler
are not yet written.