Fix percentile inconsistencies#12088
Conversation
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 9 files ± 0 9 suites ±0 3h 12m 38s ⏱️ + 2m 42s Results for commit a643500. ± Comparison against base commit 4736a38. This pull request removes 8 and adds 36 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
jacobtomlinson
left a comment
There was a problem hiding this comment.
Overall I think this looks great.
Do you think you could add a little more testing? For example in #11989 there is an example of some assertions that were failing. Could you update the tests to demonstrate they now pass?
…istency' into fix/percentile_inconsistency
|
Hi @jacobtomlinson, I already updated the |
jacobtomlinson
left a comment
There was a problem hiding this comment.
Much appreciated. I guess I was thinking about the explicit shape comparison in the issue, but asserting equality should do the same and more.
dask.array.percentileand code implementation #11336 da.percentile and np.percentile can have different output shapes #11989pre-commit run --all-filesThis PR makes some small changes to the percentile function.
.reshape(())if required)