-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
FIX Fixes joblib memmap error for KDTree and BallTree #21845
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
jjerphan
left a 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.
LGTM after treating suggestions.
Thank you for working on this, @thomasjpfan; I am currently busy with other tasks.
ogrisel
left a 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.
LGTM as well. I confirm the non-regression test would fail in main and now passes with this PR.
|
I pushed 9b173be to fix the linter and get a full CI run. |
…1845) Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Reference Issues/PRs
Fixes #21685
What does this implement/fix? Explain your changes.
This PR forces the memoryview attributes to be constant.
node_datais created to be writable ndarray in__init__and is populated when_recursive_buildis called._recursive_buildis only called in__init__. Afterwards__init__,node_datanot no longer modified.CC @jjerphan