[MRG] Fix diagonal in DBSCAN with precomputed sparse neighbors graph#12105
[MRG] Fix diagonal in DBSCAN with precomputed sparse neighbors graph#12105ogrisel merged 8 commits intoscikit-learn:masterfrom
Conversation
jnothman
left a comment
There was a problem hiding this comment.
I guess after sum_duplicates, this is reasonable.
ogrisel
left a comment
There was a problem hiding this comment.
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.
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.
jnothman
left a comment
There was a problem hiding this comment.
(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):