-
Notifications
You must be signed in to change notification settings - Fork 312
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
heterogeneous sampling primitive #4836
heterogeneous sampling primitive #4836
Conversation
…to fea_prim_heterogeneous_sampling_prim
…to fea_prim_heterogeneous_sampling_prim
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
…to fea_prim_heterogeneous_sampling_prim
…to fea_prim_heterogeneous_sampling_prim
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.
Looks like you're still missing some copyright updates.
Glad we could more directly incorporate the Algorithm-R code.
To be clear... this PR updates the primitive. But the sampling algorithm is not modified in this PR to use the primitive. We will need to add work in 25.04 to use this primitive, correct? |
…to fea_prim_heterogeneous_sampling_prim
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.
Looks good to me
/merge |
We currently use edge masking for heterogeneous sampling. This is inefficient as we need scan the entire edges # edge types times every time we call a sampling function.
This PR fixes this. We extract a subgraph (seeds and their neighbors) with edge types. Then, we perform sampling on this subgraph so no need to scan the entire edge.
This PR also updated
cugraph::test::mg_graph_to_sg_graph
function to support edge types (which is necessary to test this primitive). A large number of files (in the test directory) are modified due to this change, but updates are just few lines for each file.Closes #4735
Closes #4590