Skip to content

Define the uniform neighbor sampling C API#2112

Merged
rapids-bot[bot] merged 4 commits intorapidsai:branch-22.04from
ChuckHastings:fea_add_neighborhood_sampling_to_capi
Mar 21, 2022
Merged

Define the uniform neighbor sampling C API#2112
rapids-bot[bot] merged 4 commits intorapidsai:branch-22.04from
ChuckHastings:fea_add_neighborhood_sampling_to_capi

Conversation

@ChuckHastings
Copy link
Collaborator

@ChuckHastings ChuckHastings commented Mar 11, 2022

Define the uniform neighborhood sampling C API. The implementation will be done in a separate PR. An outline of what the implementation will resemble is provided (but ifdef'ed out).

@ChuckHastings ChuckHastings added this to the 22.04 milestone Mar 11, 2022
@ChuckHastings ChuckHastings self-assigned this Mar 11, 2022
@ChuckHastings ChuckHastings added feature request New feature or request 2 - In Progress non-breaking Non-breaking change labels Mar 11, 2022
@ChuckHastings ChuckHastings marked this pull request as ready for review March 16, 2022 18:41
@ChuckHastings ChuckHastings requested review from a team as code owners March 16, 2022 18:41
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.04@08ab284). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 735674d differs from pull request most recent head ee3b4a3. Consider uploading reports for the commit ee3b4a3 to get more accurate results

@@               Coverage Diff               @@
##             branch-22.04    #2112   +/-   ##
===============================================
  Coverage                ?   73.99%           
===============================================
  Files                   ?      157           
  Lines                   ?    10496           
  Branches                ?        0           
===============================================
  Hits                    ?     7767           
  Misses                  ?     2729           
  Partials                ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08ab284...ee3b4a3. Read the comment docs.

::cugraph_type_erased_device_array_view_t const* start,
::cugraph_type_erased_device_array_view_t const* start_label,
::cugraph_type_erased_host_array_view_t const* fan_out,
bool without_replacement)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The C++ API defines the semantic of this flag as with_replacement (which defaults to true). I know this code is ifdef-out for now, but it's meant to be brought back, as far as I understand.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I defined this based on the old definition in the C++ API. Fixed in latest push.

const cugraph_type_erased_device_array_view_t* start,
const cugraph_type_erased_device_array_view_t* start_label,
const cugraph_type_erased_host_array_view_t* fan_out,
bool_t without_replacement,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No do_expensive_check here (at least as a placeholder even if we're not checking anything at this moment)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in latest push.

@ChuckHastings
Copy link
Collaborator Author

rerun tests

@BradReesWork
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit a024581 into rapidsai:branch-22.04 Mar 21, 2022
@ChuckHastings ChuckHastings deleted the fea_add_neighborhood_sampling_to_capi branch March 31, 2022 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request New feature or request non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants