-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
FIX Avoid modifying X in-place when precomputed in OPTICS #28491
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 according to #27651, except for some nitpicks in changelog as follows. I reran the failing CI because it is not likely caused by the changes in this PR. Thanks @lamdang2k!
Thank you for your prompt review. I have made the changes as you suggested |
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 resolved the merge conflicts and moved sklearn.cluster
to above sklearn.compose
which should be the correct alphabetical order. Thanks for the PR!
After your merge there are some failed tests. I'll look on them |
Those are likely caused by scipy/scipy#20060 and would be solved with #28524. You may just leave them as is for now. |
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.
Let's wait for #28524 to be merged to |
Reference Issues/PRs
See also #27508
What does this implement/fix? Explain your changes.
Create a copy of the sparse matrix X when
metric=precomputed
to prevent OPTICS from modify the input in-placeAny other comments?