-
Notifications
You must be signed in to change notification settings - Fork 112
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
Conversation
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.
I had a look at the PR, it looks nice overall, just a few comment.
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.
Thanks Ben for the update, the PR looks good to me.
cpp/src/neighbors/nn_descent_c.cpp
Outdated
extern "C" cuvsError_t cuvsNNDescentIndexParamsCreate(cuvsNNDescentIndexParams_t* params) | ||
{ | ||
return cuvs::core::translate_exceptions([=] { | ||
*params = new cuvsNNDescentIndexParams{.metric = L2Expanded, |
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.
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.
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.
how about we have the canonical defaults in the c++ struct - and then pull out of there ? Something like : 19deed9
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.
LGTM!
/merge |
No description provided.