ENH Add sparse input support to OPTICS#22965
Conversation
Original commit was pushed, but wasn't reflected on github for some reason
jeremiedbb
left a comment
There was a problem hiding this comment.
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 |
jeremiedbb
left a comment
There was a problem hiding this comment.
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>
jeremiedbb
left a comment
There was a problem hiding this comment.
LGTM besides the sparse efficiency warning thing.
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
| dists.sort_indices() | ||
| dists = dists.data |
There was a problem hiding this comment.
@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.fitThis PR: updates work and provides continuation for review.
Any other comments?