-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT Remove -Wcpp warnings when compiling _kd_tree
and _ball_tree
#24965
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.
LGTM modulo a few comments.
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 once the points raised by @jjerphan have been taken care of.
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 think this PR better be merged in the current state; see my comment.
You're right, let's split this PR. |
04766a8
to
ae5648c
Compare
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 and mergeable to me. Thanks for splitting this PR in two with #25106, @Vincent-Maladiere.
I let @ogrisel merge if it LGTH.
Actually, I am merging this PR since I missed the remark in #24965. |
Reference Issues/PRs
Towards #24875
What does this implement/fix? Explain your changes.
sklearn/neighbors/_binary_tree.pxi
so that_kd_tree
and_ball_tree
use the new numpy APIcnp.NPY_OWNDATA
bycnp.NPY_ARRAY_OWNDATA
Any other comments?