-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH Add sparse input support to OPTICS #22965
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
Original commit was pushed, but wasn't reflected on github for some reason
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.
Not sure what to think about these warnings. Maybe we should not filter them since they indicate that the use of NearestNeighbors is not optimal. At least maybe there's something we can do to the precomputed dist matrix to not trigger all of them.
I think not all tests need to be parametrized by metric and run on dense and sparse, especially those who just do error checking or sanity checks.
@jeremiedbb I have
|
Note that the failing test is |
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. I just think that you added some unreachable code, but that needs confirmation
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
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 besides the sparse efficiency warning thing.
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
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
dists.sort_indices() | ||
dists = dists.data |
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.
@jeremiedbb This is a change from your previous approval. Are you okay with this?
Thanks @Micky774 ! |
Reference Issues/PRs
Fixes #11982
Resolves #14736 (stalled)
Resolves #20802 (stalled)
What does this implement/fix? Explain your changes.
PRs #14736 and #20802: Add support for sparse matrices in
OPTICS.fit
This PR: updates work and provides continuation for review.
Any other comments?