-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG] Fix diagonal in DBSCAN with precomputed sparse neighbors graph #12105
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.
I guess after sum_duplicates, this is reasonable.
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.
This LGTM as well.
Shall this be backported to 0.20.1? If so the whats_new.rst needs to be changed accordingly.
sklearn/cluster/tests/test_dbscan.py
Outdated
dbscan(X, metric=metric) | ||
|
||
if use_sparse: | ||
assert_array_equal(X.A, X_copy.A) |
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.
nitpick: I don't find the use of X.A
explicit enough. I would prefer assert_array_equal(X.toarray(), X_copy.toarray())
.
This is neither a critical issue, nor a regression in 0.20, so I don't
really see why it should be in 0.20.1 if that takes effort, but I don't
mind much.
|
This reverts commit 1b6b985.
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 didn't expect you to revert, I was just giving my 2c on when I think it's worth backporting and when not. If we want to see 0.20 as an LTS for Py2 support, then we should backport most bug fixes...?)
I agree this PR belongs more to 0.21 than 0.20. This is why I reverted my whatsnew entry commit. Then , the question is indeed "Do we want to backport most bug fixes in 0.20.x?" |
I prefer to include more bug fixes in 0.20.1: |
As long as they are easy to backport, yes. |
Thanks! |
We put what's new in the wrong section, I'll push a commit to correct it. |
For this bug fix, the non-regression test is in |
Fair enough, thanks. |
…ved. See scikit-learn/scikit-learn#12105 2) Noise filter option '' was changed to 'comb' 3) NZ atom of Arg was removed in 'rekkergroup' 4) Command line interface of testis has been changed to options on hjson based config file 5) Screenshots was changed 6) Articles have been ordered 7) Minor bugs fixed and improved functionality
This is a bug fix on DBSCAN.
It is also included in #10482, but I isolated it here to help the reviews.
From #10482 (comment):