Skip to content

Expose NN-Descent to C and Python #635

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

Merged
merged 10 commits into from
Feb 5, 2025

Conversation

benfred
Copy link
Member

@benfred benfred commented Jan 31, 2025

No description provided.

@benfred benfred added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jan 31, 2025
@benfred benfred requested review from a team as code owners January 31, 2025 22:30
Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

I had a look at the PR, it looks nice overall, just a few comment.

@benfred benfred requested a review from tfeher February 4, 2025 03:27
Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

Thanks Ben for the update, the PR looks good to me.

extern "C" cuvsError_t cuvsNNDescentIndexParamsCreate(cuvsNNDescentIndexParams_t* params)
{
return cuvs::core::translate_exceptions([=] {
*params = new cuvsNNDescentIndexParams{.metric = L2Expanded,
Copy link
Member

Choose a reason for hiding this comment

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

If we're going to duplicate the params structs for now, can we at least use constants to specify the defaults? I can see a lot of confusion and long debugging sessions happening as a result of these not getting synchronized between the C++ and C APIs.

Copy link
Member Author

Choose a reason for hiding this comment

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

how about we have the canonical defaults in the c++ struct - and then pull out of there ? Something like : 19deed9

Copy link
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

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

LGTM!

@cjnolet
Copy link
Member

cjnolet commented Feb 5, 2025

/merge

@rapids-bot rapids-bot bot merged commit 45703bf into rapidsai:branch-25.02 Feb 5, 2025
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake cpp improvement Improves an existing functionality non-breaking Introduces a non-breaking change Python
Development

Successfully merging this pull request may close these issues.

3 participants