Disable bottleneck by default - #11461
Conversation
|
There are several tests failing because the |
cf4fd62 to
34b16a6
Compare
keewis
left a comment
There was a problem hiding this comment.
for rolling tests I think you can explicitly enable bottleneck (the test already requires bottleneck)
Co-authored-by: Justus Magin <keewis@users.noreply.github.com>
|
Thanks @keewis! The tests are passing now, the remaining CI failure looks like a random glitch. |
keewis
left a comment
There was a problem hiding this comment.
looks good to me.
Let me think about the testing strategy, but unless there's any objections I'll merge tomorrow
(since technically this is changing the trade-off between speed and accuracy)
|
thanks again, @takluyver. I didn't end up deciding anything regarding the test strategy, so I postponed that further. |
|
Thank-you! |
* Disable bottleneck by default * Document disabling bottleneck * Ignore use_bottleneck option for rank() method * Re-enable bottleneck for rolling tests * Add name to release note Co-authored-by: Justus Magin <keewis@users.noreply.github.com> * move to breaking changes [skip-ci] (since technically this is changing the trade-off between speed and accuracy) --------- Co-authored-by: Justus Magin <keewis@users.noreply.github.com> Co-authored-by: Justus Magin <keewis@posteo.de>
Description
Certain algorithms in bottleneck are less numerically stable than their numpy equivalents, causing e.g.
arr.mean()to give surprisingly inaccurate answers if bottleneck is installed. I was just bitten by this, and it's not obvious what the source of the issue is. Everyone commenting on #7344 seems to agree that the more accurate option should be the default, even if it's slower.Checklist
whats-new.rst